Skip to content

Instantly share code, notes, and snippets.

Last active Oct 13, 2020
What would you like to do?
Fix CORS issue on WP REST API
// ....
add_action('rest_api_init', function() {
remove_filter('rest_pre_serve_request', 'rest_send_cors_headers');
}, 15);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment