Writing solid Content Security Policy (CSP) headers for WordPress… is it possible?

[ad_1]

A couple of days ago, I got my first request to add a [CSP]) to a WordPress site hosted on WPEngine. I’d never heard of it, so I had to spend a few hours reading about it before I tried making one.

I’m wondering if it’s even possible because inline CSS and JavaScript are two of the big things you want to essentially block, but if you block them chances are a plugin or a library or even WordPress core is going to break.

Has anyone had success writing a CSP for a WordPress site that doesn’t rely upon the **’unsafe-inline’** keyword?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer