Closed danielc103 closed 4 years ago
Check your include file referenced by include fastcgi_params;
-- by default it has a SERVER_PORT
param which if present would be overriding your customisation. Alternatively, move your fastcgi_param
after your include line.
In any case, since this relates to requests to operation of shibauthorizer
and shibresponder
, it's related to components of the main Shibboleth project (https://www.shibboleth.net/community/lists/ or https://issues.shibboleth.net/) rather than this module so I'm closing the issue accordingly.
Unrelated, but be careful of header injection/spoofing when using shib_request_use_headers on;
(eg in case your config wasn't edited to omit directives for clearing request headers). See details at https://github.com/nginx-shib/nginx-http-shibboleth#directives
Description the bug
Changing
fastcgi_param SERVER_PORT
to 'trick' shibauthorizer causing randomCORS
errors on proxy_pass. It's not throwing error on any specific resource loading, almost like its timing out of the session. There are no errors/warns in logs. If you need anything specific from the logs please let me know.Expected behavior
No
CORS
and normal display of pageSetup & Logs
Versions and Systems
shibboleth 3.0.4
nginx version: nginx/1.16.0
Additional context
I've tested locally using port 8443 and not changing the
SERVER_PORT
param and it works fine. No CORS error.