Skip to content

Blocked by CORS policy #158

@davidjbradshaw

Description

@davidjbradshaw

Trying to upgrade to v3.1, but I am getting the following error:

Access to XMLHttpRequest at 'file:///Users/dave/dev/iframe-resizer/src/iframeResizer.js?_=1550217744050' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https.

I can see this is an issue with the default settings of Chrome, so I added the flags to turn this error off, but that does not appear to be being passed through

puppeteer: {
  args: [
    '--disable-web-security',
    '--allow-file-access-from-files',
    '--user-data-dir=/tmp'
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions