SRI integrity attribute for JS chunks missing with pages router #75413
cbengeWTCT
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@cbengeWTCT The experimental flag in question at the moment is only supported on the Edge Runtime with Pages Router. Let me relay this back to the team! |
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.
-
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/jovial-firefly-wx97gr?workspaceId=ws_3ZtafuUfP1tYxS9a7x5wHu
To Reproduce
Clone canary version
Enable SRI experimental feature within next.config as per #73891
Create new page within the pages router
Build and run application
Check source code for integrity attribute
Current vs. Expected behavior
Current
integrity attribute is missing from JS chunks script tags
Expected:
Script tags that import JS chunks to have integrity attribute present
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Sun Aug 6 20:05:33 UTC 2023 Available memory (MB): 4102 Available CPU cores: 2 Binaries: Node: 20.9.0 npm: 9.8.1 Yarn: 1.22.19 pnpm: 8.10.2 Relevant Packages: next: 15.2.0-canary.22 // Latest available version is detected (15.2.0-canary.22). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.1.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Pages Router
Which stage(s) are affected? (Select all that apply)
next start (local), Other (Deployed)
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions