-
Notifications
You must be signed in to change notification settings - Fork 56
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
sriHashes
incorrect when setting cdnUrl
with path (like https://xxx/xxx
) and baseUrl
starts with '/'
(default value or/xxx/
)
#535
Comments
Hi @Shana-AE |
Yes you're right |
By the way, is there any way to modify the sriHashes at runtime? |
Can you explain your workflow sequence a little bit more? |
Thank you for replying! |
I don't know if it has any other effects, but I think yes. |
I suppose you are building a static application (nuxi generate) and not an SSR/hybrid application (nuxi build), right ? |
No, we use SSR ( |
Then I'm not sure I get it
Sorry to ask so many questions, I think I might have misunderstood your setup |
Anyway, Thank you for your help! Help is always a help 🙏 Sorry for not being clear. I also asked at nuxt discord and github disscussion, but got no answer 😢
I used to think |
@Shana-AE let's have this discussion offline on Discord |
Version
nuxt-security: v2.0.0
nuxt: v3.13.2
Reproduction Link
https://stackblitz.com/edit/nuxt-starter-iaotaz?file=package.json,nuxt.config.ts,.vscode%2Fsettings.json,.output%2Fserver%2Fchunks%2Fruntime.mjs
Steps to reproduce
nuxt.config.ts
code .output/server/chunks/runtime.mjs
to open the built file since it's not showed in sidebarWhat is Expected?
sriHashes
should consider cdnURL path, and keys should behttps://test/path/<files>
What is actually happening?
sriHashes
ignored cdnURL path, and keys starts withhttps://test/<files>
The text was updated successfully, but these errors were encountered: