CORS in Action: Creating and consuming cross-origin APIs


CORS in Action: Creating and consuming cross-origin APIs
By 作者: Monsur Hossain
ISBN-10 书号: 161729182X
ISBN-13 书号: 9781617291821
Edition 版本: 1
Release Finelybook 出版日期: 2014-10-31
pages 页数: (240 )

The Book Description robot was collected from Amazon and arranged by Finelybook

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


Contents


Foreword
Preface
Acknowledgments
About this Book
Author Online
About the Author
About the Cover llustration
Part 1.Introducing CORS
Chapter 1.The Core of CORS
Chapter 2.Making CORS requests
Part 2.CORS on the server
Chapter 3.Handling CORS requests
Chapter 4.Handling preflight requests
Chapter 5.Cookies and response headers
Chapter 6.Best practices
Part 3.Debugging CORS requests
Chapter 7.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

下载地址

CORS in Action Creating and consuming cross-origin APIs 9781617291821.zip

觉得文章有用就打赏一下文章作者
未经允许不得转载:finelybook » CORS in Action: Creating and consuming cross-origin APIs
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏