Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2643

Access to localhost has been blocked by CORS policy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.6.2
    • PySide
    • None
    • Windows

    Description

      When axios send post to 'localhost' got CORS error as below. 

      Access to XMLHttpRequest at 'https://localhost:xxxx/xxxx' from origin 'https://xxxx.xxxx.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

      While the same page works fine on both edge and chrome.

       I already enable LocalContentCanAccessRemoteUrls.

      I douted it's the problem of proxy, but seems noproxy is applied to the hosts as i want.

      I add "--disable-web-security" to QTWEBENGINE_CHROMIUM_FLAGS and the error changes to net::ERR_CONNECTION_RESET 501 (Not Implemented)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            stofone lei zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes