try to fix cors issues
This commit is contained in:
parent
e9b14a11d7
commit
96689879c4
@ -2,7 +2,7 @@
|
||||
"name": "24unix/bindapi",
|
||||
"description": "manage Bind9 DNS server via REST API",
|
||||
"version": "1.0.9",
|
||||
"build_number": "356",
|
||||
"build_number": "357",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Micha Espey",
|
||||
|
@ -26,7 +26,7 @@ header(header: "Access-Control-Allow-Origin: *");
|
||||
header(header: "Content-Type: application/json; charset=UTF-8");
|
||||
header(header: "Access-Control-Allow-Methods: OPTIONS,GET,POST,PUT,DELETE");
|
||||
header(header: "Access-Control-Max-Age: 3600");
|
||||
header(header: "Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
|
||||
header(header: "Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With, x-api-key");
|
||||
|
||||
$requestMethod = $_SERVER["REQUEST_METHOD"];
|
||||
|
||||
@ -44,3 +44,4 @@ try {
|
||||
'error' => $e->getMessage()
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user