CORS headers to apache vhost config

This commit is contained in:
Blue 2023-12-05 19:22:37 -03:00
parent b63fc27e47
commit 7a54d5025f
Signed by: blue
GPG Key ID: 9B203B252A63EE38
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
version: "2" version: "3"
services: services:
pica: pica:
image: thebluestbird/pica-standalone:latest image: thebluestbird/pica-standalone:latest

View File

@ -1,4 +1,9 @@
<Location /pica> <Location /pica>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers: "*"
</IfModule>
ProxyPass "unix:/run/pica/pica.sock|fcgi://localhost" ProxyPass "unix:/run/pica/pica.sock|fcgi://localhost"
ProxyPassReverse "http://localhost" ProxyPassReverse "http://localhost"
</Location> </Location>