CORS in Action
Creating and consuming cross-origin APIs

EPUB · English
Price and availability
EPUB eBookUS store
$67.99
Sign in to buyYou’ll review your order and final price before payment.
Download from your library after delivery. Protected eBooks need a compatible reading app.
For personal use under the eBook licence.
Territorial availability
Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa
Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.
- Format
- EPUB
- DRM
- Not stated by the publisher
- Language
- English
- Publisher
- Manning
- Published
- 20 October 2014
- ISBN
- 9781638353256
- Subjects
- Computer programming / software development, Web programming, Computer programming / software engineering, Web programming
About this book
SummaryCORS 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 BookSuppose 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 "e;same-origin"e; 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 InsideCORS from the ground upServing and consuming cross-domain dataBest practices for building CORS APIsWhen to use CORS alternatives like JSON-P and proxiesAbout the AuthorMonsur 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 ContentsPART 1 INTRODUCING CORSThe Core of CORSMaking CORS requestsPART 2 CORS ON THE SERVERHandling CORS requestsHandling preflight requestsCookies and response headersBest practicesPART 3 DEBUGGING CORS REQUESTSDebugging CORS requests APPENDIXESCORS referenceConfiguring your environmentWhat is CSRF?Other cross-origin techniques
Bibliographic data © Gardners Books Ltd.