-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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(renderToPipeableStream): Allow passing crossorigin attribute on bootstrapScripts #25989
Comments
+1 |
Right now, bootstrapScripts lacks flexibility because we can't set scripts attributes. My application needs custom data-attributes on the scripts for compatibility, but I can't set them, this is complicates development. it would be cool to be able to do something like this:
With this result:
|
+1 |
Would someone like to send a PR? |
Sure, let me do that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
window.onerror
in the bootstrap script that is hosted in a CDN the error message will show"Script error."
instead of a proper error message. This is because of the cross-origin script. To fix this issue acrossorigin="anonymous"
attribute needs to be added in the script tag.Currently,
bootstrapScripts
supportssrc
andintegrity
as configurations, should it also supports acrossorigin
property?The text was updated successfully, but these errors were encountered: