Book description
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.
About the Technology
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.
About the Book
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.
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 Reader
For web developers comfortable with JavaScript. No experience with CORS is assumed.
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.
Quotes
A well-rounded resource for developers wanting to learn the entire spectrum of CORS.
- From the Foreword by Eric Bidelman, Google
All you need to know about CORS in one well-explained book.
- Roger Keizer, HUSS B.V
The right balance of application and theory.
- Roger Le, Coder Vox
Stop getting cross-eyed from cross-domain problems.
- Christopher Haupt, Mobirobo, Inc.
Publisher resources
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this Book
- Author Online
- About the Author
- About the Cover Illustration
- Part 1. Introducing CORS
- Part 2. CORS on the server
- Part 3. Debugging CORS requests
- Appendix A. CORS reference
- Appendix B. Configuring your environment
- Appendix C. What is CSRF?
- Appendix D. Other cross-origin techniques
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: CORS in Action
- Author(s):
- Release date: October 2014
- Publisher(s): Manning Publications
- ISBN: 9781617291821
You might also like
book
GraphQL in Action
Reduce bandwidth demands on your APIs by getting only the results you need—all in a single …
book
React Hooks in Action
Build stylish, slick, and speedy-to-load user interfaces in React without writing custom classes. React Hooks are …
book
Spring Security in Action
While creating secure applications is critically important, it can also be tedious and time-consuming to stitch …
book
REST API Development with Node.js : Manage and Understand the Full Capabilities of Successful REST Development
Manage and understand the full capabilities of successful REST development. REST API development is a hot …