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
Refused to load the script 'https://www.googletagmanager.com/gtag/js' because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-xxxx' 'strict-dynamic' https: http: 'unsafe-inline' 'unsafe-eval'". Note that 'strict-dynamic' is present, so host-based allowlisting is disabled. Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
I tried setting force-dynamic in Layout.js but it did not solve the problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I tried to clone the
with-strict-csp
introduced in the Content Security Policy of Next.js and tried the script, but I get the following error.export const dynamic = "force-dynamic";
I tried setting force-dynamic in
Layout.js
but it did not solve the problem.Is there any workaround? 🙇♂️
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions