Created
October 2, 2020 22:16
-
-
Save carl-alberto/189dda188ca1e7934bee3bb8a6431f65 to your computer and use it in GitHub Desktop.
This file contains 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
function additional_securityheaders( $headers ) { | |
if ( ! is_admin() ) { | |
$headers['Access-Control-Allow-Origin'] = '*'; | |
} | |
return $headers; | |
} | |
add_filter( 'wp_headers', 'additional_securityheaders' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment