Skip to content

Instantly share code, notes, and snippets.

@ariona
Last active Oct 13, 2020
Embed
What would you like to do?
Fix CORS issue on WP REST API
<?php
// ....
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