sjohnr / springone-2021

Spring Security 5.5 From Taxi To Takeoff

Home Page:https://springone.io/2021/sessions/spring-security-5-5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lylJson opened this issue · comments

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.

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.