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 (Inactive) added a comment -

            Please see the required changes here.

            Show
            pbadzuh Philip Badzuh (Inactive) added a comment - Please see the required changes here .
            Hide
            ann.loraine Ann Loraine added a comment -

            Need to update requirements.txt.

            Show
            ann.loraine Ann Loraine added a comment - Need to update requirements.txt.
            Hide
            pbadzuh Philip Badzuh (Inactive) 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 (Inactive) 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 (Inactive) added a comment -

            Please see the PR here.

            Show
            pbadzuh Philip Badzuh (Inactive) added a comment - Please see the PR here .
            Hide
            ann.loraine Ann Loraine added a comment -

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

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

            Philip Badzuh Please provide testing protocol for this ticket.

            Show
            omarne Omkar Marne (Inactive) added a comment - Philip Badzuh Please provide testing protocol for this ticket.
            Hide
            pbadzuh Philip Badzuh (Inactive) 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 (Inactive) 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 (Inactive) 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 (Inactive) 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 (Inactive)
                Reporter:
                pbadzuh Philip Badzuh (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: