Setting a JSON web token from a secondary api as a secure cookie on WordPress
Seems odd to answer my own question, but in case it is of use to someone, this is the answer. To make an ajax call to a plugin, and receive the response correctly you must register that endpoint with the plugin. This allows you to sidestep the protection WordPress is putting in your way. I’m … Read more