CORS in Action: Errata

CORS in Action

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

Last updated: 2016-01-05

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."

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.

There is a line of code that reads serverapp.use(cookieParser);. This line should actually read serverapp.use(cookieParser());. There are additional parenthesis after cookieParser.

Last updated: 2016-01-05