December 2019
Intermediate to advanced
314 pages
6h 51m
English
In this chapter, we have used JavaScript to drive a request into Quarkus' service. In a more complex scenario where your JavaScript code is deployed in its own service on a distinct host or context, you will have to implement Cross-Origin Resource Sharing (CORS) to make it work. In a nutshell, CORS allows web clients to make HTTP requests to servers hosted on different origins. By origin, we mean a combination of the URI scheme, hostname, and port number.
This is especially challenging for client-side languages such as JavaScript because all modern browsers require a same-origin policy for scripting languages.
To make this work, we need to put our server applications in charge of deciding ...
Read now
Unlock full access