June 2024
Intermediate to advanced
440 pages
11h 30m
English
This chapter covers
In this chapter, we discuss cross-origin resource sharing (CORS) and how to apply it with Spring Security. First, what is CORS, and why should you care? The need for CORS stems from web applications. By default, browsers don’t allow requests made for any domain other than the one from which the site is loaded. For example, if you access the site from example.com, the browser won’t let the site make requests to api.example.com. Figure 10.1 illustrates this concept.

Figure 10.1 Cross-origin resource sharing (CORS). When accessed from example.com, the website cannot ...
Read now
Unlock full access