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
The ApolloNextAppProvider creates an inline script during SSR that is meant to set the ApolloSSRDataTransport property on the window, but with a strict CSP and 'unsafe-inline' disabled, there is no way to attach the script-src nonce to this inline script.
The nonce is set in the x-nonce request header and NextJS uses this to set the nonce on all of the inline scripts it creates. Can we also grab this header and attach it to the inline script being created by apollo?
The text was updated successfully, but these errors were encountered:
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
The
ApolloNextAppProvider
creates an inline script during SSR that is meant to set theApolloSSRDataTransport
property on the window, but with a strict CSP and 'unsafe-inline' disabled, there is no way to attach the script-src nonce to this inline script.The nonce is set in the
x-nonce
request header and NextJS uses this to set the nonce on all of the inline scripts it creates. Can we also grab this header and attach it to the inline script being created by apollo?The text was updated successfully, but these errors were encountered: