Skip to content

Commit

Permalink
Update cors headers to fix security alert
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed Dec 5, 2023
1 parent 77cee39 commit 6360182
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions demo-proxy/etc-httpd/conf.d/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,8 @@ EECDH EDH+aRSA !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4"
#Header set Strict-Transport-Security "max-age=300"
#Header set Content-Security-Policy: upgrade-insecure-requests

Header set Access-Control-Max-Age "300"
# could be 'localhost', <ip-of-docker-machine>, '</etc/hosts entry>'
Header set Access-Control-Allow-Origin "*"
# allow cookies to be sent cross origin
Header set Access-Control-Allow-Credentials "true"
Header set Access-Control-Allow-Origin "${PASS_CORE_BASE_URL}"
Header merge Access-Control-Allow-Methods "PUT, OPTIONS"
Header merge Access-Control-Expose-Headers "authorization"

#Map /idp to Tomcat
ProxyPass /idp https://idp:4443/idp
Expand Down

0 comments on commit 6360182

Please sign in to comment.