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

SPA Cors requests are blocked #1683

Open
apetrut opened this issue Feb 15, 2023 · 2 comments
Open

SPA Cors requests are blocked #1683

apetrut opened this issue Feb 15, 2023 · 2 comments
Labels

Comments

@apetrut
Copy link

apetrut commented Feb 15, 2023

Hi.

I've been trying to use Duende login page as a redirect from an Angular SPA, but I get the following error:

image

The angular settings can be found below:

image

The back-end app runs using docker-compose behind a nginx proxy. I have also setup HTTPS certificates for *.skoruba.local domain and subdomains.

Does anyone have any ideas on how to fix it?

@TarasKovalenko
Copy link
Contributor

@apetrut please check which issuer is on your /.well-known/openid-configuration file.
https://docs.duendesoftware.com/identityserver/v6/reference/endpoints/discovery/

@damienbod
Copy link
Owner

You need to allow this on the server. Please refer to setting up CORS on ASP.NET Core and on identity server. Add it to the startup and to the client configuration

Greetings Damien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants