CORS in Action: Errata
Hi there! Thank you for taking the time to read CORS in Action. This page lists errors discovered after publication. If you find any errors, please report them on the Author Online Forum. I will continue to update this page as issues are found. Thanks!
— Monsur Hossain
- Chapter 2, Listing 2.1:
The labels for "Sends request" and "Processes response" should be switched.
xhr.onload should be labeled as "Processes response", while
xhr.send() should be labeled as "Sends request."
- Chapter 4, Section 4.6, page 93 and Chapter 6, Section 6.6.1, pages 140 & 141:
These pages list the maximum preflight cache time as five minutes (for Chrome, Opera, and Safari). The actual value is 600 seconds, or 10 minutes. This value can be found in the CrossOriginPreflightResultCache.cpp file for Blink and WebKit.
- Chapter 5, Listing 5.2:
There is a line of code that reads
This line should actually read
There are additional parenthesis after