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

CORS issue login staging #1639

Closed
f1sh1918 opened this issue Sep 24, 2024 · 2 comments
Closed

CORS issue login staging #1639

f1sh1918 opened this issue Sep 24, 2024 · 2 comments
Labels
Bug Something isn't working

Comments

@f1sh1918
Copy link
Contributor

Describe the bug
As a tester i want to login on staging for testing. When i try to login i get "Server nicht erreichbar"

To Reproduce
Steps to reproduce the behavior:

  1. [Go to '...'](https://staging.bayern.ehrenamtskarte.app/)
  2. Try to login (without a CORS plugin)
  3. Check error message
Access to fetch at 'https://api.staging.entitlementcard.app/' from origin 'https://staging.bayern.ehrenamtskarte.app' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, https://staging.bayern.ehrenamtskarte.app', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Expected behavior
Login works without cors issue

Additional context
We changed the backend config flag production: false for staging environment, since we wanted to expose an endpoint only for staging. This is causing the issue. We may introduce a different flag for securing the endpoint or adjusting the CORS configuration here:
8201c96

@f1sh1918 f1sh1918 added the Bug Something isn't working label Sep 24, 2024
@f1sh1918 f1sh1918 moved this to Next Up in entitlementcard Sep 24, 2024
@f1sh1918
Copy link
Contributor Author

f1sh1918 commented Oct 2, 2024

i will change the production value in salt after this was released. That should fix the isse
#1417

@f1sh1918 f1sh1918 added the blocked Task or user story can not be continued at the moment label Oct 2, 2024
@f1sh1918 f1sh1918 removed the blocked Task or user story can not be continued at the moment label Oct 22, 2024
@f1sh1918
Copy link
Contributor Author

@github-project-automation github-project-automation bot moved this from Next Up to Done in entitlementcard Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant