From adaedb31f65fb9c1c534c19dfc6057c36fa770eb Mon Sep 17 00:00:00 2001 From: BibaltiK Date: Sat, 7 Oct 2023 22:40:37 +0200 Subject: [PATCH] adjust htacces for cors failure --- public/.htaccess | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index 1448f471..9c9baa63 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,4 +1,10 @@ RewriteEngine On + + Header set Access-Control-Allow-Origin "http://localhost:8080" + Header set Access-Control-Allow-Methods "PUT,POST,GET,DELETE,OPTIONS,ORIGIN" + Header set Access-Control-Allow-Headers "Content-Type, Authorization, Origin, X-Requested-With" + Header set Access-Control-Allow-Credentials "true" + # The following rule allows authentication to work with fast-cgi RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # The following rule tells Apache that if the requested filename