Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[SRI] integrity missing for stylesheets #74149

Open
darthmaim opened this issue Dec 19, 2024 · 0 comments
Open

[SRI] integrity missing for stylesheets #74149

darthmaim opened this issue Dec 19, 2024 · 0 comments

Comments

@darthmaim
Copy link
Contributor

darthmaim commented Dec 19, 2024

Link to the code that reproduces this issue

https://github.com/darthmaim-reproductions/vercel-next.js-74149

To Reproduce

  1. Clone the reproduction
  2. Run npm run build
  3. Open .next/server/app/index.html and observe that stylesheets don't have integrity set.
    <link rel="stylesheet" href="/_next/static/css/8da8fb13d9b551fb.css" data-precedence="next"/>

Current vs. Expected behavior

Included stylesheets currently don't get the integrity attribute.

Stylesheets should have integrity set.

Provide environment information

Node.js v22.5.1

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Tue Nov 5 00:21:55 UTC 2024
  Available memory (MB): 15953
  Available CPU cores: 8
Binaries:
  Node: 22.5.1
  npm: 10.8.2
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 15.1.1-canary.13 // Latest available version is detected (15.1.1-canary.13).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.3.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

The stylesheet hash is correctly included in .next/server/subresource-integrity-manifest.json, its just missing in the html.

Related:

@darthmaim darthmaim added the bug Issue was opened via the bug report template. label Dec 19, 2024
@samcx samcx removed the bug Issue was opened via the bug report template. label Jan 23, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants