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 configuration #84

Open
jordi-morillas opened this issue Jul 16, 2021 · 0 comments
Open

CORS configuration #84

jordi-morillas opened this issue Jul 16, 2021 · 0 comments
Labels

Comments

@jordi-morillas
Copy link

Expected behavior

As a learning user, I want to send requests from client side so that I can connect with the api and get response data.

Actual behavior

When sending requests from the angular app, they are rejected due to CORS.

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Send any request from the client side following the tutorial.

Related/Dependent Issues

Comments/Hints:

If you follow the documentation to try to replicate the front and end apps, when you reach cors configuration for allow any connections from the client side (https://github.com/devonfw/jump-the-queue/wiki/devon4j-layers), if you follow this wiki ,the project get a couple of errors related to importing cors enabled value from porperties, and also lacks the implementation of getCorsFilter() method. You can check the code in the repository for class BaseWebSecurityConfig anyway, but even copying it throws an exception. Changing inside getCorsFilter() config.setAllowCredentials(true) to false fix the problem, or specifying a list of allowedOriginPatterns should do the trick too.

Affected version:

Tested on windows 10 using Chrome

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

1 participant