Sometimes while using the wordpress editor for editing the wordpress files like header.php, footer.php, on saving the file the page is getting redirected to localhost/removecookies and the file is not saved.
Let us see why this happens and what is the solution for the same.
This issue is because of Mod Security which is present on the server side.
Some rules of Mod Secutiry are blocking the action which results such error.
To get the error fixed, one should contact their hosting provider explaining the steps to replicate the error on their side.
Also, don't allow to disable Mod security for your account as this may lead to insecurity. Ask them only to disable that specific rule of Mod security which is blocking the action.
Hope this helps ! 🙂
If any feedback, queries are always welcome!