Follow Us To Get More New Updates

Wednesday, May 22, 2019

CORS in Action: Creating and consuming cross-origin APIs


File Size: 3.74 Mb

Description
I first encountered cross-origin requests around 2006, when I joined Google and became the owner of the GData JavaScript Client. The GData JavaScript Client was a library that gave developers access to various Google APIs from JavaScript. The library itself was written in JavaScript, and the code was pretty straightforward...except for this little corner of code that made cross-origin requests to Google’s servers. This was before CORS existed, so this little corner jumped though crazy hoops to load data from Google’s APIs. From the developer’s perspective, the code simply worked. But between the request and the response was a dark and convoluted maze of code that was difficult to understand and debug.

So you can imagine my happiness when I discovered CORS. Here was a clean, simple, and standard way for making cross-origin requests. Instead of code that’s difficult to understand, I could have simple HTTP response headers. Instead of code that’s difficult to debug, I could have a single standard that worked across all browsers. I quickly set out to add support for CORS to Google’s APIs.

Content:-
PART 1: INTRODUCING CORS
1. The Core of CORS
2. Making CORS requests
PART 2: CORS ON THE SERVER
3. Handling CORS requests
4. Handling preflight requests
5. Cookies and response headers
6. Best practices
PART 3: DEBUGGING CORS REQUESTS
7. Debugging CORS requests

Author Details
"MONSUR HOSSAIN"




Download Drive-1
div style="text-align: center;">
You May Also Like These E-Books:-

No comments:

Post a Comment