We're submitting data to the plugin from a different domain. We're setting the required CORS headers via .htaccess (so the OPTIONS request goes through) but Craft seems to remove them from the actual POST request, which seems to be a problem for Axios.
The way I see it there is no way of overriding the controller to add headers to the response. Any hints as to how to approach this?
Thanks!
We're submitting data to the plugin from a different domain. We're setting the required CORS headers via
.htaccess(so the OPTIONS request goes through) but Craft seems to remove them from the actual POST request, which seems to be a problem for Axios.The way I see it there is no way of overriding the controller to add headers to the response. Any hints as to how to approach this?
Thanks!