-
Notifications
You must be signed in to change notification settings - Fork 27k
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
app dir next.config.js option crossOrigin: 'anonymous'
not working
#53190
Comments
Next.js stores the value of I will work on this issue then. |
Fixes #53190. Next.js App Router comprises two categories of resources, same-origin ones (RSC payload, in the form of inline `<script />`) and possibly third-party ones (chunks that respect the `assetPrefix`). The latter should also respect the `crossOrigin` option from `next.config.js`. Co-authored-by: Jiachi Liu <4800338+huozhi@users.noreply.github.com>
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023 Binaries: Node: 18.16.0 npm: 9.5.1 Yarn: N/A pnpm: 8.6.2 Relevant Packages: next: 13.4.12 eslint-config-next: 13.4.12 react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.3 Next.js Config: output: standalone
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router
Link to the code that reproduces this issue or a replay of the bug
https://codesandbox.io/p/sandbox/boring-dust-mjv4ps
To Reproduce
crossOrigin: 'anonymous'
optioncrossOrigin: 'anonymous'
Describe the Bug
nextjs v13, app dir, next.config.js exises
crossOrigin: 'anonymous'
option but not workingExpected Behavior
how to add crossOrigin='anonymous' to script ?
Which browser are you using? (if relevant)
Chrome 114.0.0.0
How are you deploying your application? (if relevant)
next start
NEXT-1475
The text was updated successfully, but these errors were encountered: