Skip to content
Permalink
Browse files

Coment the lines about the CORS request. Let the metacat operator mak…

…e decision.
  • Loading branch information
taojing2002 committed Aug 3, 2018
1 parent 4757924 commit 4e392a2316e83bb1c321260a36218651bb965677
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/scripts/debian/metacat-site-ssl.conf
  2. +2 −2 src/scripts/debian/metacat-site.conf
@@ -4,8 +4,8 @@ NameVirtualHost *:443
DocumentRoot /var/lib/tomcat7/webapps/metacat

## Allow CORS requests from all origins to use cookies
SetEnvIf Origin "^(.*)$" ORIGIN_DOMAIN=$1
Header set Access-Control-Allow-Origin "%{ORIGIN_DOMAIN}e" env=ORIGIN_DOMAIN
#SetEnvIf Origin "^(.*)$" ORIGIN_DOMAIN=$1
#Header set Access-Control-Allow-Origin "%{ORIGIN_DOMAIN}e" env=ORIGIN_DOMAIN
Header set Access-Control-Allow-Headers "Authorization, Content-Type, Origin, Cache-Control"
Header set Access-Control-Allow-Methods "GET, POST, PUT, OPTIONS"
Header set Access-Control-Allow-Credentials "true"
@@ -4,8 +4,8 @@ NameVirtualHost *:80
ServerName <your_hostname_here>

## Allow CORS requests from all origins to use cookies
SetEnvIf Origin "^(.*)$" ORIGIN_DOMAIN=$1
Header set Access-Control-Allow-Origin "%{ORIGIN_DOMAIN}e" env=ORIGIN_DOMAIN
#SetEnvIf Origin "^(.*)$" ORIGIN_DOMAIN=$1
#Header set Access-Control-Allow-Origin "%{ORIGIN_DOMAIN}e" env=ORIGIN_DOMAIN
Header set Access-Control-Allow-Headers "Authorization, Content-Type, Origin, Cache-Control"
Header set Access-Control-Allow-Methods "GET, POST, PUT, OPTIONS"
Header set Access-Control-Allow-Credentials "true"

0 comments on commit 4e392a2

Please sign in to comment.
You can’t perform that action at this time.