#Script tags inserted in the browser when using defer() does not include the nonce attribute

1 messages · Page 1 of 1 (latest)

celest elbow
#

Hello! I am making a basic Remix application with an Express server adapter. I am using a CSP and nonce for loading script tags. Everything works fine, but when I use the defer() function in my loader, the scripts inserted do not inherit the nonce attribute.

The code snippets are the images. Let me know if more information is needed.

#

I forgot. This is the route file

#

Additional info:

This happens when I hard refresh a page, but when I save a file and trigger HMR, then the data loads and successfully gets console logged

#

here is the console in the browser upon triggering hmr