It seems a strict CSP for style-src
will be unhappy when webpack's style-loader
tries to append inline CSS in a create-react-app (CRA):
I was wondering if I need to use a webpack dev server to take advantage of using a nonce token, or if CRA had a way of circumventing this style issue during development. The REACT_APP_INLINE_RUNTIME_CHUNK=false value doesn't seem to help in this case (in fact, I'm not seeing a difference in the resources that come over the wire between setting it to true vs. false). But I am running npm start
instead of npm build
, I think the latter properly builds with environmental variables, not sure about the CRA dev server.