add CORS
This commit is contained in:
@@ -1,21 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
require_once __DIR__ . '/../../hta_config/conf.php';
|
||||||
header('Access-Control-Allow-Origin: *');
|
applyApiHeaders($API_HEADERS);
|
||||||
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
|
|
||||||
header('Access-Control-Allow-Headers: Content-Type, Authorization');
|
|
||||||
header('X-Powered-By: SiliconPin Tools');
|
|
||||||
/**
|
|
||||||
* DNS A Record Lookup API
|
|
||||||
* Endpoint: /dns-tools-get-a-record
|
|
||||||
* Method: POST
|
|
||||||
* Content-Type: application/json
|
|
||||||
*/
|
|
||||||
|
|
||||||
// -------------------------------
|
|
||||||
// Response headers
|
|
||||||
// -------------------------------
|
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
|
||||||
|
|
||||||
// -------------------------------
|
// -------------------------------
|
||||||
// Allow only POST
|
// Allow only POST
|
||||||
// -------------------------------
|
// -------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user