Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CORS Access Control headers in proxy server #360

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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