initial commit file manager project
This commit is contained in:
12
WebService/router.php
Normal file
12
WebService/router.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
if($_SERVER["REQUEST_METHOD"] == "OPTIONS"){
|
||||
http_response_code(200);
|
||||
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE");
|
||||
header("Access-Control-Allow-Headers: authorization, origin, content-type, accept, x-requested-with");
|
||||
header("Access-Control-Max-Age: 3600");
|
||||
} else {
|
||||
include "index.php";
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user