Skip to content

Commit

Permalink
Coment the lines about the CORS request. Let the metacat operator mak…
Browse files Browse the repository at this point in the history
…e decision.
  • Loading branch information
taojing2002 committed Aug 3, 2018
1 parent 4757924 commit 4e392a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/scripts/debian/metacat-site-ssl.conf
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/debian/metacat-site.conf
Expand Up @@ -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"
Expand Down

0 comments on commit 4e392a2

Please sign in to comment.