Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-3036

Update hub facade django settings to allow cross-origin requests

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      In debugging IGBF-3007, I noticed that requests to the production hub facade API are failing due to the CORS policy of the server not allowing cross-origin requests. In order to for the trackhubs frontend to utilize the new API endpoint introduced with IGBF-3010, the server settings will need to be updated.

        Attachments

          Issue Links

            Activity

            Hide
            pbadzuh Philip Badzuh added a comment -

            Please see the required changes here.

            Show
            pbadzuh Philip Badzuh added a comment - Please see the required changes here .
            Hide
            aloraine Ann Loraine added a comment -

            Need to update requirements.txt.

            Show
            aloraine Ann Loraine added a comment - Need to update requirements.txt.
            Hide
            pbadzuh Philip Badzuh added a comment -

            The dependency for this change has been added to requirements.txt. Please see the same branch linked to in the previous comment.

            Show
            pbadzuh Philip Badzuh added a comment - The dependency for this change has been added to requirements.txt. Please see the same branch linked to in the previous comment.
            Hide
            pbadzuh Philip Badzuh added a comment -

            Please see the PR here.

            Show
            pbadzuh Philip Badzuh added a comment - Please see the PR here .
            Hide
            aloraine Ann Loraine added a comment -

            Merged and deployed to https://translate.bioviz.org. Ready for testing.

            Show
            aloraine Ann Loraine added a comment - Merged and deployed to https://translate.bioviz.org . Ready for testing.
            Hide
            omarne Omkar Marne added a comment -

            Philip Badzuh Please provide testing protocol for this ticket.

            Show
            omarne Omkar Marne added a comment - Philip Badzuh Please provide testing protocol for this ticket.
            Hide
            pbadzuh Philip Badzuh added a comment - - edited

            To test:

            • Open the trackhub table that includes changes from IGBF-3007.
              • Clear site data from within the browser dev tools.
              • Refresh the page.
              • Observe that there is no CORS error in the console.
            Show
            pbadzuh Philip Badzuh added a comment - - edited To test: Open the trackhub table that includes changes from IGBF-3007 . Clear site data from within the browser dev tools. Refresh the page. Observe that there is no CORS error in the console.
            Hide
            omarne Omkar Marne added a comment -

            https://www.bioviz.org/public-trackhubs.html - Trackhub table is accessible and there are no CORS errors.

            Closing the ticket.

            Show
            omarne Omkar Marne added a comment - https://www.bioviz.org/public-trackhubs.html - Trackhub table is accessible and there are no CORS errors. Closing the ticket.

              People

              • Assignee:
                omarne Omkar Marne
                Reporter:
                pbadzuh Philip Badzuh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: