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: automatically add cross-origin script attr when applicable #70

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

DylanPiercey
Copy link
Contributor

Description

Automatically adds the crossoriginattribute to script tags when the set __webpack_public_path__ will be on a different origin.

Motivation and Context

This improves support for window.onerror when assets are loaded from another domain, eg cdn.

Checklist:

  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@DylanPiercey DylanPiercey merged commit d2ba115 into master Jul 6, 2022
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.

1 participant