A way to filter/remove predefined headers on cached responses
-
Hi. Thanks for a great plugin. I would like a way to filter/remove predefined headers that are sent on cached responses.
As it looks right now I had to edit the plugin inside the get_api_cache() function where it calls rest_send_cors_headers function that sends the predefined headers.
Background why is that I use AngularJS $http service with WP REST and somehow it creates duplicate headers entries instead of overwriting them. The ones I had was better configured and as I can see it there is only a way to add custom headers, not a way to remove the predefined ones
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘A way to filter/remove predefined headers on cached responses’ is closed to new replies.