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: allow applications to set crossorigin attribute #68

Merged
merged 1 commit into from
Jul 6, 2023
Merged

feat: allow applications to set crossorigin attribute #68

merged 1 commit into from
Jul 6, 2023

Conversation

stfsy
Copy link
Contributor

@stfsy stfsy commented Jun 20, 2023

hi @camsong

this PR will allow applications to set the crossorigin attribute on the script tag. This allows for more finegrained control over cross-origin resources especially when used together with https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy.

A document can only load resources from the same origin, or resources explicitly marked as loadable from another origin. If a cross origin resource supports CORS, the crossorigin attribute or the Cross-Origin-Resource-Policy header must be used to load it without being blocked by COEP.

The feature is backwards-compatible as it is disabled by default.

@camsong camsong merged commit 3867bfc into camsong:master Jul 6, 2023
@camsong
Copy link
Owner

camsong commented Jul 6, 2023

Thanks very much for your contribution, I just released https://github.com/camsong/fetch-jsonp/releases/tag/v1.3.0
Have a nice day.

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.

2 participants