sjohnr / springone-2021

Spring Security 5.5 From Taxi To Takeoff
https://springone.io/2021/sessions/spring-security-5-5
69 stars 27 forks source link

What should I do if I deploy the static resources of the SPA in nginx? #6

Closed lylJson closed 2 years ago

lylJson commented 2 years ago

Now the spa is served as static content from the /static directory of flights-web. I mean deploy the '/static directory' to nginx, because usually the static resources are developed by another group of people who are now deploying their SPA pages directly on nginx.

sjohnr commented 2 years ago

Hi @lylJson. I believe the only difference would be you need to configure CORS on the bff (web) application. The allowed origin in your CORS configuration would point to the domain where your UI is hosted.