Replies: 1 comment 1 reply
-
|
we dont have this yet. needs to be added |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking for the correct way to add a crossOrigin attribute to all the <script> tags generated by my TanStack Start application.
When serving JS assets from a different origin (e.g., a CDN), browsers mask the details of any errors thrown from those scripts for security reasons. This results in a generic and unhelpful "Script error." message.
The standard solution is to add crossorigin="anonymous" to the script tags. This allows the browser to expose the full error details, restoring essential debugging and error handling capabilities.
In Next.js, this is handled via a simple global configuration:
I'm trying to achieve the same result in TanStack Start.
Could you please advise on the recommended way to achieve this? Is there an existing mechanism I've missed, or would this be considered a feature request?
Beta Was this translation helpful? Give feedback.
All reactions