Browse Source

Add CORS header to API

Skylar Ittner 3 months ago
parent
commit
7d30251cd6
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      api/index.php

+ 2
- 0
api/index.php View File

@@ -10,6 +10,8 @@ require __DIR__ . '/../required.php';
10 10
 require __DIR__ . '/functions.php';
11 11
 require __DIR__ . '/apisettings.php';
12 12
 
13
+header("Access-Control-Allow-Origin: *");
14
+
13 15
 $VARS = $_GET;
14 16
 if ($_SERVER['REQUEST_METHOD'] != "GET") {
15 17
     $VARS = array_merge($VARS, $_POST);

Loading…
Cancel
Save