Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
CORS in Action: Creating and consuming cross-origin APIs

Buy

Summary

CORS in Action introduces Cross-Origin Resource Sharing (CORS) from both the server and the client perspective. It starts with the basics: how to make CORS requests and how to implement CORS on the server. It then explores key details such as performance, debugging, and security. API authors will learn how CORS opens their APIs to a wider range of users. JavaScript developers will find valuable techniques for building rich web apps that can take advantage of APIs hosted anywhere. The techniques described in this book are especially applicable to mobile environments, where browsers are guaranteed to support CORS.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Book

Suppose you need to share some JSON data with another application or service. If everything is hosted on one domain, it's a snap. But if the data is on another domain, the browser's "same-origin" policy stops you cold. CORS is a new web standard that enables safe cross-domain access without complex server-side code. Mastering CORS makes it possible for web and mobile applications to share data simply and securely.

CORS in Action introduces CORS from both the server and the client perspective. It starts with making and enabling CORS requests and then explores performance, debugging, and security. You'll learn to build apps that can take advantage of APIs hosted anywhere and how to write APIs that expand your products to a wider range of users.

For web developers comfortable with JavaScript. No experience with CORS is assumed.

What's Inside

  • CORS from the ground up
  • Serving and consuming cross-domain data
  • Best practices for building CORS APIs
  • When to use CORS alternatives like JSON-P and proxies

About the Author

Monsur Hossain is an engineer at Google who has worked on API-related projects such as the Google JavaScript Client, the APIs Discovery Service, and CORS support for Google APIs.

Table of Contents

PART 1 INTRODUCING CORS
PART 2 CORS ON THE SERVER
PART 3 DEBUGGING CORS REQUESTS
APPENDIXES
  1. The Core of CORS
  2. Making CORS requests
  3. Handling CORS requests
  4. Handling preflight requests
  5. Cookies and response headers
  6. Best practices
  7. Debugging CORS requests
  1. CORS reference
  2. Configuring your environment
  3. What is CSRF?
  4. Other cross-origin techniques
(HTML tags aren't allowed.)

MATLAB with Applications to Engineering, Physics and Finance
MATLAB with Applications to Engineering, Physics and Finance

Master the tools of MATLAB through hands-on examples
Shows How to Solve Math Problems Using MATLAB

The mathematical software MATLAB® integrates computation, visualization, and programming to produce a powerful tool for a number of different tasks in mathematics. Focusing on the...

eBay Global the Smart Way: Buying and Selling Internationally on the World's #1 Auction Site
eBay Global the Smart Way: Buying and Selling Internationally on the World's #1 Auction Site
What an exciting opportunity to expand your sales! Simply sell in other countries. Your potential market is bigger, and consequently profits can be greater. And American goods are very popular abroad. But before we get carried away with this idea, let’s take a look at a major barrier, language. What is its significance? No one can argue that...
Windows 2000: Quick Fixes
Windows 2000: Quick Fixes
O'Reilly and Associates is known mainly for publishing excellent books about programming languages and operating systems, and for catering to propellerheads' endless appetite for minor details. In Windows 2000 Quick Fixes, O'Reilly proves that it can put out equally excellent books for less technical users of operating systems--people...

After Effects @ Work: DV Expert Series
After Effects @ Work: DV Expert Series

Real-World commercial projects presented in full color feature the work of renowned artists, Chris and Trish Meyer, Jayse Hansen, Mark Coleran, Ken Locsmandi and others. The tutorials are commercial projects that the artists created for a client budget of $10,000 or less, using only the plug-ins that come with the software. Special focus is...

Stroke Recovery with Cellular Therapies (Current Clinical Neurology)
Stroke Recovery with Cellular Therapies (Current Clinical Neurology)

Stroke is the leading cause of serious, long term disability. This book proposes different cellular therapies under investigation to promote neural regeneration after stroke. Authored by an international panel of scientists and clinicians, this volume is a vital, one-of-a-kind resource for all scientists interested in regenerative...

The Iliad
The Iliad
"Ian Johnston provides his readers with a clear and comprehensible translation of the Iliad that presents itself as a dynamic equivalent of the Greek original. Johnston captures the text with an eye to both accuracry and his modern readership." --- Dr. Andrew Porter, University of Missouri-Columbia

"Johnston's translation
...
©2021 LearnIT (support@pdfchm.net) - Privacy Policy