Jump to content

Content Security Policy


axel31

Recommended Posts

Hi,

I want to write a Content-Security-Policy, but I am facing trouble. On my htaccess, I have written

Header set Content-Security-Policy "default-src 'self';"

but all the javascript codes don't work anymore. I thought that with self and defaut it would authorize the javascript from my server (for now localhost for my test)...

Does anyone know how to write it properly?

Thanks for help

 

Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...