Skip to content

Commit

Permalink
again try fix cors
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Apr 29, 2024
1 parent edbf726 commit 4f0e48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/APICore.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function setAllowedOriginHeader() {
header( 'Access-Control-Allow-Origin: *' );
}
else if( $this->isAllowedOrigin() ) {
header( 'Access-Control-Allow-Origin: ' . ($_SERVER['HTTP_ORIGIN'] || '*') );
header( 'Access-Control-Allow-Origin: ' . $this->RequestHeaders[ "Origin" ] );
}
else {
header( "Access-Control-Allow-Origin: {$_SERVER['HTTP_HOST']}" );
Expand Down

0 comments on commit 4f0e48d

Please sign in to comment.