Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [1553] Add disableCrossOriginPolicy setting to disable cors in the browser #1554

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

OlaviSau
Copy link
Contributor

An option to disable cors in the browser.

this.disableCrossOriginPolicy = options.disableCrossOriginPolicy ?? false;
this.disableCrossOriginPolicy =
options.disableCrossOriginPolicy ??
this.#browserFrame.page.context.browser.settings.disableCrossOriginPolicy ??

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super useful

@OlaviSau
Copy link
Contributor Author

OlaviSau commented Sep 25, 2024

Not sure why tests are failing, locally they work :) It seems the CI is stricter with warnings and one of the packages has deprecated some functionality.

Copy link
Owner

@capricorn86 capricorn86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @OlaviSau! ⭐

Sorry that it took such a long time to get this in.

I've added some unit tests and changed name on the setting to fetch.disableSameOriginPolicy.

@capricorn86 capricorn86 merged commit 1625d40 into capricorn86:master Nov 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants