
CORS in Action
Creating and Consuming Cross-origin APIs
Manning · Print & ebook · October 31, 2014
Summary CORS in Action introduces Cross-Origin Resource Sharing (CORS) from both the server and the client perspective.
We earn from qualifying purchases.
- Who it’s for
- CORS in Action covers cross-domain requests from both client and server perspectives, including debugging and security.
- Themes
- Cross-origin resource sharing, Cross-domain data sharing, CORS performance and security
- Pacing
- Steady
Nearest books
Matched by what the books are about, then ordered by what their readers also loved.
OAuth 2 in ActionJustin Richer, Antonio Sanso60% matchShares APIs & Web Services and Web Programming
ASP.NET Core in ActionAndrew Lock57% matchShares Web Programming
JSON at WorkTom Marrs55% matchShares APIs & Web Services and Web Programming
ASP.NET Core Razor Pages in ActionMike Brind53% matchShares Web Programming
Kubernetes in ActionMarko Luksa52% match
Black Hat GraphQLNick Aleks, Dolev Farhi51% matchShares APIs & Web Services
Amazon Web Services in Action, Third EditionAndreas Wittig, Michael Wittig51% matchShares APIs & Web Services
Rx.NET in ActionTamir Dresher51% match
Start with three books, and this one can be the first.
Members get a new edition every morning: a route out from their books to essays, research and talks, with the reason for each.
Start with this bookAbout this book
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.
Continue reading
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 - The Core of CORS - Making CORS requests PART 2 CORS ON THE SERVER - Handling CORS requests - Handling preflight requests - Cookies and response headers - Best practices PART 3 DEBUGGING CORS REQUESTS - Debugging CORS requests APPENDIXES - CORS reference - Configuring your environment - What is CSRF? - Other cross-origin techniques
Cross-Domain Requests
CORS in Action covers cross-domain requests from both client and server perspectives, including debugging and security.
Come here for
- Making and enabling cross-domain requests
- Server-side handling, preflight requests, and response headers
Expect
- Practical coverage of performance and CORS API best practices
- Discussion of JSON-P and proxies as CORS alternatives
Where it sits
| APIs & Web Services | 79% |
|---|---|
| JavaScript Development | 60% |
| Web Programming | 42% |
Percentages are BookFrontier’s reading of the book.
Publisher categories
- JavaScript Development
- Mobile App Development
- Computer Security
- Internet & Web
Show all 8 publisher categories
- Web Browsers
- Web Programming
- APIs & Web Services
- Client-Server Computing
- Authors
- Monsur Hossain
- Publisher
- Manning
- Published
- October 31, 2014
- Format
- Print & ebook
- Theme
- Cross-origin resource sharing · Cross-domain data sharing · CORS performance and security
- Reading lane
- JavaScript Development