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
{{ message }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
html files generated by npm run export contain inline scripts (and in case of rollup these even use eval)
The documentation suggests using a runtime injected nonce via server.js but this is not applicable to export.
You can set the nonce to a placeholder value in the server and it will be present in the exported html. The server you use for the exported files can then replace the placeholder.
Activity
pgjones commentedon May 26, 2020
You can set the nonce to a placeholder value in the server and it will be present in the exported html. The server you use for the exported files can then replace the placeholder.
pgjones commentedon May 27, 2020
@dominikg For the nonce to be effective you will need to generate a new one on every request
Did you mean something else?