Description
When mock relying party UI tries to invoke the wellknown endpoint to fetch the value of code_challenge_methods_supported, CORS error is encountered
Expected:
Added the below property in the Nginx configuration of OIDC UI:
add_header 'Access-Control-Allow-Origin' $cors_allowed_origin always;
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always;
map $http_origin $cors_allowed_origin {
default "";
"~^https?://([a-z0-9-]+\.)?esdev\.mosip\.net$" $http_origin; # Matches *.esdev.mosip.net
}
Description
When mock relying party UI tries to invoke the wellknown endpoint to fetch the value of
code_challenge_methods_supported, CORS error is encounteredExpected:
Added the below property in the Nginx configuration of OIDC UI:
map $http_origin $cors_allowed_origin {
}