Omicans
Omicans

Reputation: 561

Content Security Policy: Directive 'frame-src' has been deprecated. Please use directive 'child-src' instead

I am working in a codeigniter framework and suddenly the site i am working on has stopped working properly in firefox and stating the following error.

Content Security Policy: Directive 'frame-src' has been deprecated. Please use directive 'child-src' instead.

I have not written frame-src or anything anywhere in the code yet it is giving me that error. any idea how can I resolve this issue?

Its working perfectly well in Chrome...

Upvotes: 3

Views: 5983

Answers (1)

Mirko Conti
Mirko Conti

Reputation: 618

The "content-security-policy" is not in your code (usually) but it is a HTTP header field. You just need to change the header field ("content-security-policy") that your server sends for each request.

Remove the header if you do not need it (not recommended) or try to replace the string "frame-src" with "child-src".

To check if the changes work, look in the developer tools of Chrome.

Upvotes: 2

Related Questions