Skip to content

Instantly share code, notes, and snippets.

@AlkarE
Created February 18, 2019 21:41
Show Gist options
  • Select an option

  • Save AlkarE/bcb30f9386431913b5b311180c672dfd to your computer and use it in GitHub Desktop.

Select an option

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

AlkarE commented Feb 18, 2019

Copy link
Copy Markdown
Author

wordpress header allow origin

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