Solve the CORS error with Spring Security and a React frontend.

preview_player
Показать описание
In this video, I solve the CORS error using Spring Security. I use a React frontend to test my application and see when the CORS error is solved. There is a difference when solving the CORS error within the Spring Security instead of the WebMvcConfigurer.

The CORS error appears when a frontend tries to access a backend with a different URL. To solve this problem, I must configure my backend to accept a frontend from a different URL. I can also specify which HTTP methods are accepted and which HTTP Headers.

Рекомендации по теме
Комментарии
Автор

Thanks for uploading this, buddy! Awesome content

tylerdurden
Автор

Thank you and your videos, they helped complete my pet project. Thanks to your spring security+react and cors tutorials, I was finally able to figure out how it works

qhltfgl
Автор

The best tutorial I found and it worked!
Thank you so much and keep doing what you doing🔥💯

vyfpqld
Автор

Thanks a lot for clean and great tutorial.

muhammedbeyhanus
Автор

Ótima explicação 👏👏, ajudou muito, muito obrigado.

felipecp
Автор

Thanks. Is there any difference between using this or using WebMvcConfigurer?

chrisvillegas
Автор

Thank u very much, i am working on a spring boot and Angular Project and had the same Problem with Cors. I have already implement the configuration this way which is works locally, but when i deploy my spring boot on Server and try to test my angular app i get 403!!
so locally it works fine but on network i get the 403!
Can u help me with this issue?

yazansadieh
Автор

Thank you, for your Videos !! Do you have any good sources with clear explanations of WebFlux in Java? I haven't worked with reactive programming before, and now I'm having some trouble understanding how to write good code with WebFlux. I would really appreciate it

vazhabek