axa-group / oauth2-mock-server

A development and test oriented OAuth2 mock server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Cross-Origin Resource Sharing (CORS)

henriquels25 opened this issue · comments

Summary

I have a single page application that uses the authorization code flow to authenticate with the authorization server.
Right now, it is not possible to use this mock server because the request is blocked by CORS policy.

Error: Access to XMLHttpRequest at 'http://localhost:8083/.well-known/openid-configuration' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Desired solution

It would be good if the mock authorization server supported CORS, or if there was a client argument to enable it.

This issue is solved by #23