remix-run / remix

Build Better Websites. Create modern, resilient user experiences with web fundamentals.

Home Page:https://remix.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Single fetch: allow setting a `nonce` on `StreamTransfer`'s `script` tags

haines opened this issue · comments

Expected Behavior

We have a CSP in place which requires a nonce on inline scripts, so we need to add that to the script tags created in the StreamTransfer component.

Actual Behavior

There is no way afaict to set the nonce for these scripts.

This fix is available in 2.9.2-pre.1 if you'd like to give it a shot and see if it resolves your issue! Here's the draft release notes: https://github.com/remix-run/remix/blob/release-next/CHANGELOG.md#v292