XHR Requests (JavaScript client-side scenario)
Learn how to set JavaScript for the client-side in an agile way.
You need to set a couple of things before you can use JavaScript for the client-side in an agile way.
CORS policies
If you want to use JavaScript and XML HTTP Request (XHR) requests for the client-side, you will need to create a filter on your authorization server that sets the Cross-Origin Resource Sharing (CORS) policies for every request.
How you do this will differ depending on the Spring version you use.
For Spring Boot 1.5, you might need to create a custom bean for the WebMvcConfigurer
class like so: ...