List of Listings
Chapter 1. The Core of CORS
Chapter 2. Making CORS requests
Listing 2.1. Making a CORS request to the Flickr API
Listing 2.2. Setting up an HTTP request to the Flickr API
Listing 2.3. Calling the send method to initiate the HTTP request
Listing 2.4. Assigning a function to the XMLHttpRequest’s onload event handler
Listing 2.5. Handling a CORS error using the onerror event handler
Listing 2.6. Using the XDomainRequest object to make a request to the Flickr API
Listing 2.7. Creating the correct CORS request object across browsers
Listing 2.8. Drawing a rectangle on a canvas
Chapter ...
Get CORS in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.