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

CrossOrigin wrong #1

Open
simasch opened this issue Feb 6, 2024 · 3 comments
Open

CrossOrigin wrong #1

simasch opened this issue Feb 6, 2024 · 3 comments

Comments

@simasch
Copy link

simasch commented Feb 6, 2024

Hi,

First of all thanks for the great example!

In the TutorialController the CrossOrigin definition is wrong. Should be like this because the Angular app runs on port 4200

@CrossOrigin(origins = {"http://localhost:4200"}) 
@tienbku
Copy link
Contributor

tienbku commented Feb 7, 2024

Hi, please read README.md carefully.

ng serve --port 8081

@simasch
Copy link
Author

simasch commented Feb 7, 2024

Hi @tienbku
Thanks for the information. Indeed I didn't fully because usually the default is used and cross origin is set as in my comment.

@simasch simasch closed this as completed Feb 7, 2024
@simasch
Copy link
Author

simasch commented Feb 10, 2024

In that case you can remove the @crossorigin annotation.

@simasch simasch reopened this Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants