Created
February 18, 2019 21:41
-
-
Save AlkarE/bcb30f9386431913b5b311180c672dfd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wordpress header allow origin