Archived topic
Problem to add php code to hook
2 replies · Started by hibiscus80 on June 12, 2018
Hi,
I tried to add php code to the hook "before header" but I get an error message ERR_BLOCKED_BY_XSS_AUDITOR
I don't have this problem with css or javascript code but only php
The problem doesn't come from the code or the configuration of the server because I used the same code on another website hosting on the same server without any problem.
I already tried to desactive all the plugins except generatepress but the problem persist?
Thanks
Is the code added in a hook saved in database? If yes in which table? I would like to try to insert it manually. Thanks
Hi there,
Looks like an extra security measure your host has added to their server. They're preventing that code from saving to the database.
You'll need to contact them in order for them to allow you to save it.
Let me know if you need more info :)