Skip to content

CORS configuration #84

@jordi-morillas

Description

@jordi-morillas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions