You can turn off the CSP for your entire browser in Firefox by disabling security. csp. enable in the about:config menu. If you do this, you should use an entirely separate browser for testing.
How do I turn off content security policy in Chrome?
Click the extension icon to disable Content-Security-Policy header for the tab. Click the extension icon again to re-enable Content-Security-Policy header. Use this only as a last resort. Disabling Content-Security-Policy means disabling features designed to protect you from cross-site scripting.
What is CSP in Chrome?
CSP stands for Content Security Policy, and it is a browser security mechanism. Developers can set CSP using either a HTTP response header, or with a HTML meta tag.