Skip to content

Adding CORS for accessing eSignet wellknown endpoints in OIDC UI #1997

@rachik-hue

Description

@rachik-hue

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

}

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Task.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions