Skip to content

Commit

Permalink
adjust htacces for cors failure
Browse files Browse the repository at this point in the history
  • Loading branch information
BibaltiK committed Oct 7, 2023
1 parent f1924ec commit adaedb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
RewriteEngine On
<IfModule mod_headers.c>
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"
</IfModule>
# 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
Expand Down

0 comments on commit adaedb3

Please sign in to comment.