Skip to content

Commit

Permalink
can't remove origin header if we want CORS to work right
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Apr 29, 2024
1 parent 216d497 commit edbf726
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 @@ -13,7 +13,7 @@ class APICore {
private ?string $ResponseContentType = null;

private static array $onlyUsefulHeaders = [
"Accept", "Accept-Language", "X-Requested-With", "Host"
"Accept", "Accept-Language", "X-Requested-With", "Host", "Origin"
];

public function __construct(){
Expand Down

0 comments on commit edbf726

Please sign in to comment.