Free Downloads
CORS In Action: Creating And Consuming Cross-origin APIs

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. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. 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 "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 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

Paperback: 240 pages

Publisher: Manning Publications; 1 edition (October 31, 2014)

Language: English

ISBN-10: 161729182X

ISBN-13: 978-1617291821

Product Dimensions: 0.5 x 7.2 x 9 inches

Shipping Weight: 15.2 ounces (View shipping rates and policies)

Average Customer Review: 5.0 out of 5 stars  See all reviews (1 customer review)

Best Sellers Rank: #521,023 in Books (See Top 100 in Books) #12 in Books > Computers & Technology > Programming > Cross-platform Development #84 in Books > Computers & Technology > Internet & Social Media > Web Browsers #125 in Books > Computers & Technology > Web Development & Design > Web Services

This book is so well written to explain CORS in plain Javascript examples. The analogs used is also excellent.

CORS in Action: Creating and consuming cross-origin APIs Cross Stitch: for Beginners - Cross Stitch Patterns - Cross Stitch Guide - Cross Stitch Explained for Starters (Cross Stitch Books for Dummies - Cross Stitch Tips - Cross Stitch 101) Irresistible APIs: Designing web APIs that developers will love The Consuming Instinct: What Juicy Burgers, Ferraris, Pornography, and Gift Giving Reveal About Human Nature Renewables Are Ready--People Creating Renewable Energy Solutions: People Creating Renewable Engery Soultions Clean Energy Through Community Action (Real Goods Independent Living Book) Build APIs You Won't Hate: Everyone and their dog wants an API, so you should probably learn how to build them The API Economy: Disruption and the Business of APIs DirectX, RDX, RSX, and MMX Technology: A Jumpstart Guide to High Performance APIs API Architecture: The Big Picture for Building APIs (API-University Series Book 2) Cross Words with 4 - 5 letters: Mini Cross Words Cross Training: Top 100 Cross Training WOD's with Pictures! Toys, Games, and Action Figure Collectibles of the 1970s: Volume I Action Jackson to Gre-Gory the Bat Vocabulary in Action Level H Teacher Guide: Word Meaning, Pronunciation, Prefixes, Suffixes, Synonyms, Antonyms, and Fun! (Vocabulary in Action 2010) Vocabulary in Action Level G Teacher Guide: Word Meaning, Pronunciation, Prefixes, Suffixes, Synonyms, Antonyms, and Fun! (Vocabulary in Action 2010) Technology In Action Complete (13th Edition) (Evans, Martin & Poatsy, Technology in Action Series) Key West D.O.A.: A Jack Marsh Briar Malone Key West Action Thriller (Key West Action Thriller Series Book 6) Positive Parenting in Action: The How-To Guide for Putting Positive Parenting Principles into Action in Early Childhood Gestalt Counselling in Action (Counselling in Action series) Thriller: In Sheep's Clothing - An Action Thriller Novel (A Noah Wolf Novel, Thriller, Action, Mystery Book 3) Thriller: Lone Wolf - An Action Thriller Novel (A Noah Wolf Novel, Thriller, Action, Mystery Book 2)