Skip to content

Launch browserless with '--disable-web-security', with and without token has different results #180

@ksyke

Description

@ksyke

Hi there,

Thank you for the hard work.
Just as the title implies, I'm trying to access a page that renders images on a canvas.
As I've encountered CORS errors, I tried adding '--disable-web-security' which works great on the demo. But as soon as I've added the token, the CORS problems returns.

Here is my code using token:
const browser = await puppeteer.connect({
browserWSEndpoint: 'wss://chrome.browserless.io?token=MY-TOKEN&--disable-web-security'
});

Here is my code without token:
const browser = await puppeteer.connect({
browserWSEndpoint: 'wss://chrome.browserless.io?--disable-web-security'
});

Did i do something wrong when adding my token?

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