From d8b93fe1d78790742b99d7c1fbd3a13c816a2a9e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 29 Jul 2019 21:31:06 +0100 Subject: [PATCH] Allow CORS access from IPv6 localhost --- api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.php b/api.php index 479851c..7806037 100644 --- a/api.php +++ b/api.php @@ -54,6 +54,8 @@ $perfcounter->end("di"); // 5: Action +header("access-control-allow-origin: http://[::1]:40482"); + // Figure out the action name $action = str_replace( " ", "",