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

Error while loading data from eFP-Seq Browser (Show: Alignments in IGB) when using Firefox

    Details

    • Story Points:
      1
    • Sprint:
      Fall 2018 Sprint 2, Fall 2018 Sprint 3

      Description

      When the user clicks on the link "Show: Alignments in IGB" while accessing eFP-Seq Browser, Firefox blocks localhost request to load data in running instance IGB, as it treats the same as mixed content.
      We need to find a workaround for this issue for Firefox specifically, as it works as expected in Chrome.

        Attachments

          Issue Links

            Activity

            Hide
            kkorey Kiran Korey (Inactive) added a comment -

            Tested the issue in Chrome, Firefox, Opera, Edge, and IE.
            The Page loaded and the sequence was loaded in IGB from Chrome, Firefox, Opera and EDGE.
            But could not get it loaded in IE, even the page https://bar.utoronto.ca/eFP-Seq_Browser/ could not be loaded in IE.

            Marking the issue as resolved at this point in time.

            Show
            kkorey Kiran Korey (Inactive) added a comment - Tested the issue in Chrome, Firefox, Opera, Edge, and IE. The Page loaded and the sequence was loaded in IGB from Chrome, Firefox, Opera and EDGE. But could not get it loaded in IE, even the page https://bar.utoronto.ca/eFP-Seq_Browser/ could not be loaded in IE. Marking the issue as resolved at this point in time.
            Hide
            ann.loraine Ann Loraine added a comment -

            Please also try in other browsers

            • Opera
            • Internet Explorer
            • Edge
            Show
            ann.loraine Ann Loraine added a comment - Please also try in other browsers Opera Internet Explorer Edge
            Hide
            ann.loraine Ann Loraine added a comment -

            Deployed on BioViz main https://bioviz.org

            Show
            ann.loraine Ann Loraine added a comment - Deployed on BioViz main https://bioviz.org
            Show
            stiwari8 Srishti Tiwari (Inactive) added a comment - Pull request submitted. https://bitbucket.org/lorainelab/bioviz/pull-requests/22/igbf-1402-changed-localhost-to-127001-for/diff
            Hide
            stiwari8 Srishti Tiwari (Inactive) added a comment -

            Hi Kiran Korey
            Steps to replicate the issue:
            1. Go to https://bar.utoronto.ca/eFP-Seq_Browser/ and Click "Load data" button.
            2. After the data is loaded, check the last column of main page and Click "Alignments in IGB".
            3. You can see that Bioviz page is unable to load alignments in IGB if the browser is Firefox. It works fine in Chrome.

            Please let me know if you need more information.

            Show
            stiwari8 Srishti Tiwari (Inactive) added a comment - Hi Kiran Korey Steps to replicate the issue: 1. Go to https://bar.utoronto.ca/eFP-Seq_Browser/ and Click "Load data" button. 2. After the data is loaded, check the last column of main page and Click "Alignments in IGB". 3. You can see that Bioviz page is unable to load alignments in IGB if the browser is Firefox. It works fine in Chrome. Please let me know if you need more information.
            Hide
            kkorey Kiran Korey (Inactive) added a comment -

            Hi Srishti Tiwari
            Can you add the link to test this issue?

            Show
            kkorey Kiran Korey (Inactive) added a comment - Hi Srishti Tiwari Can you add the link to test this issue?
            Hide
            ann.loraine Ann Loraine added a comment -

            To test the idea, I set up these urls:

            URL #1 - makes cross-origin request and gets back a response with Access-Control-Allow-Origin header:

            URL #2 - makes cross-origin request and gets back a response with NO such header:

            Note: these urls will disappear after this issue is closed

            Show
            ann.loraine Ann Loraine added a comment - To test the idea, I set up these urls: URL #1 - makes cross-origin request and gets back a response with Access-Control-Allow-Origin header: http://52.91.179.47/cor.html?cor=1 URL #2 - makes cross-origin request and gets back a response with NO such header: http://52.91.179.47/cor.html?cor=2 Note : these urls will disappear after this issue is closed
            Hide
            ann.loraine Ann Loraine added a comment - - edited

            Nice work ST on discovering the problem and finding the cause.

            Based on your description, I was able to find some on-line documentation that suggested this fix:

            Looks like we need to add the following header to IGB's responses to HTTP requests:

            Access-Control-Allow-Origin: *

            This enables javascript code downloaded from an origin (e.g., bioviz.org) to consume and display data from non-origin endpoints.

            Show
            ann.loraine Ann Loraine added a comment - - edited Nice work ST on discovering the problem and finding the cause. Based on your description, I was able to find some on-line documentation that suggested this fix: Looks like we need to add the following header to IGB's responses to HTTP requests: Access-Control-Allow-Origin: * This enables javascript code downloaded from an origin (e.g., bioviz.org) to consume and display data from non-origin endpoints.
            Hide
            stiwari8 Srishti Tiwari (Inactive) added a comment -

            https://bugzilla.mozilla.org/show_bug.cgi?id=903966

            This issue about blocking localhost as a mixed content still exists in Firefox, because of which we are seeing the error while loading data on IGB.

            These are two approaches to this -
            1. Ask the user to allow all mixed content for all websites, but it is not recommended, the configuration is all or none.
            2. Notify the user about the issue while displaying the error page and ask to disable protection - on every request.

            Show
            stiwari8 Srishti Tiwari (Inactive) added a comment - https://bugzilla.mozilla.org/show_bug.cgi?id=903966 This issue about blocking localhost as a mixed content still exists in Firefox, because of which we are seeing the error while loading data on IGB. These are two approaches to this - 1. Ask the user to allow all mixed content for all websites, but it is not recommended, the configuration is all or none. 2. Notify the user about the issue while displaying the error page and ask to disable protection - on every request.

              People

              • Assignee:
                stiwari8 Srishti Tiwari (Inactive)
                Reporter:
                stiwari8 Srishti Tiwari (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: