Adding CORS header to debian apache config.

This commit is contained in:
Roland 2024-06-18 16:53:27 -06:00
parent 336ef1abb4
commit f035f94b32
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -23,6 +23,10 @@
SSLCertificateFile /etc/nginx/cert.crt
SSLCertificateKeyFile /etc/nginx/cert.key
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header set Access-Control-Allow-Headers "Content-Type"
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular