From 8d4dc1b414ee211ae43baf9284c3ac979319e714 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 3 Nov 2016 00:58:32 +0100 Subject: [PATCH] Fix cors --- www/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/index.php b/www/index.php index cdb6df4..f6a22f9 100644 --- a/www/index.php +++ b/www/index.php @@ -21,6 +21,11 @@ if(ini_get('max_file_uploads') < 50) { throw new Exception("php directive 'max_file_uploads' should be >= 50"); } +header("Access-Control-Allow-Origin: https://emotionhero.com"); +header("Access-Control-Allow-Methods: POST, GET, OPTIONS"); +header("Access-Control-Allow-Headers: X-PINGOTHER"); +header("Access-Control-Max-Age: 1728000"); + /* * JWT setup */