You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the issue is pretty straightforward, but I will try to create a reproduction if it's not clear enough.
Describe the bug
For some reason, nuxt is generating a style tag with innerHTML: true and not a string, so unhead crashes when running the XSS plugin. This causes the whole app to crash with tag.innerHTML.replace is not a function.
When debugging, here's what the tag that the XSS plugin tries to process sometimes looks like:
Environment
Nuxt 3.8.2, Node v18, MacOS
Reproduction
I think the issue is pretty straightforward, but I will try to create a reproduction if it's not clear enough.
Describe the bug
For some reason, nuxt is generating a style tag with innerHTML: true and not a string, so unhead crashes when running the XSS plugin. This causes the whole app to crash with
tag.innerHTML.replace is not a function
.When debugging, here's what the
tag
that the XSS plugin tries to process sometimes looks like:Probably a better check is needed here - https://github.com/unjs/unhead/blob/main/packages/unhead/src/plugins/xss.ts
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: