Skip to content

Commit

Permalink
Stable release
Browse files Browse the repository at this point in the history
Added PATCH to access control origins
  • Loading branch information
andrevanzuydam committed Aug 27, 2019
1 parent 18fc405 commit 742d65e
Show file tree
Hide file tree
Showing 5 changed files with 1,696 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tina4/Routing.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function __construct($root = "", $urlToParse = "", $method = "")
if (key_exists("HTTP_ORIGIN", $_SERVER) ) {
header('Access-Control-Allow-Origin: ' . $_SERVER["HTTP_ORIGIN"]);
}
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
header('Access-Control-Allow-Methods: GET, PUT, POST, PATCH, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
header('Access-Control-Allow-Credentials: true');
}
Expand Down
Loading

0 comments on commit 742d65e

Please sign in to comment.