Skip to content

Instantly share code, notes, and snippets.

@AlkarE
Created February 18, 2019 21:41
Show Gist options
  • Save AlkarE/bcb30f9386431913b5b311180c672dfd to your computer and use it in GitHub Desktop.
Save AlkarE/bcb30f9386431913b5b311180c672dfd to your computer and use it in GitHub Desktop.
add_filter( 'allowed_http_origins', 'add_allowed_origins' );
function add_allowed_origins( $origins ) {
$origins[] = 'https://site1.example.com';
$origins[] = 'https://site2.example.com';
return $origins;
}
@AlkarE
Copy link
Author

AlkarE commented Feb 18, 2019

wordpress header allow origin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment