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.)

Game Theory at Work: How to Use Game Theory to Outthink and Outmaneuver Your Competition
Game Theory at Work: How to Use Game Theory to Outthink and Outmaneuver Your Competition

Game theory—the study of how competitors act, react, and interact in the strategic pursuit of their own self-interest—has become an essential competitive tool in today’s business arena. Game Theory at Work provides examples of how businesspeople can use this time-proven approach to successfully meet competitive...

Mapping Hacks : Tips & Tools for Electronic Cartography
Mapping Hacks : Tips & Tools for Electronic Cartography
Mapping Hacks is a collection of one hundred simple techniques available to developers and power users who want to draw digital maps. You'll learn where to find the best sources of geographic data and then how to integrate that data into your own creations. With so many industrial-strength tips and tools, ...
PHP & MySQL For Dummies 3rd edition (Computer/Tech)
PHP & MySQL For Dummies 3rd edition (Computer/Tech)
Build an online catalog and a members-only site

Everything you need to know to create a dynamic PHP and MySQL Web site!

Been thinking of creating a high-quality interactive Web site? This book is just what you need to get started! Here's the fun and easy way(r) to develop a Web application in PHP 4, 5, or 6 and
...

Teach Yourself VISUALLY Microsoft Word 2003
Teach Yourself VISUALLY Microsoft Word 2003

Are you a visual learner? Do you prefer instructions that show you how to do something — and skip the long-winded explanations? If so, then this book is for you. Open it up and you'll find clear, step-by-step screen shots that show you how to tackle more than 125 Word 2003 tasks. Each task-based spread includes these great features to get...

Fundamental Approach to Discrete Mathematics
Fundamental Approach to Discrete Mathematics

The salient features of this book include: strong coverage of key topics involving recurrence relation, combinatorics, Boolean algebra, graph theory and fuzzy set theory. Algorithms and examples integrated throughout the book to bring clarity to the fundamental concepts. Each concept and definition is followed by thoughtful examples. There is...

Co-evolution of Intelligent Socio-technical Systems: Modelling and Applications in Large Scale Emergency and Transport Domains (Understanding Complex Systems)
Co-evolution of Intelligent Socio-technical Systems: Modelling and Applications in Large Scale Emergency and Transport Domains (Understanding Complex Systems)

As the interconnectivity between humans through technical devices is becoming ubiquitous, the next step is already in the making: ambient intelligence, i.e. smart (technical) environments, which will eventually play the same active role in communication as the human players, leading to a co-evolution in all domains where real-time...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy