Security Plugin Modification for Pagely’s CDN

We rewrote a custom WordPress security plugin to make it compatible with Pagely’s CDN.

An agency client raised an issue concerning their custom security plugin and its compatibility with the Pagely CDN. The plugin was designed to add Content Security Policy headers and nonces to the site. It was incompatible with Pagely’s CDN; with the plugin enabled, the site’s URL was not replaced with the Pagely CDN URL in the page source. With the plugin disabled, the CDN URL worked, but no headers and nonces were added.

With a small 4-hour troubleshooting budget approved, we dug into the Pagely code and were able to rewrite the client’s custom plugin, making it compatible with the Pagely CDN; all URLs are rewritten, CSP headers and nonces were intact, and best of all — it only took us 3 hours to solve.