CORS in Action

CORS in Action pdf epub mobi txt 电子书 下载 2025

出版者:Manning Publications
作者:Monsur Hossain
出品人:
页数:240
译者:
出版时间:2014-10-31
价格:USD 49.99
装帧:Paperback
isbn号码:9781617291821
丛书系列:
图书标签:
  • CORS
  • Web安全
  • 软件开发
  • 计算机
  • Web
  • Security
  • CORS
  • Web
  • API
  • JavaScript
  • HTTP
  • 浏览器安全
  • 跨域请求
  • REST
  • 前端开发
  • 后端开发
  • 网络协议
想要找书就要到 小美书屋
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

具体描述

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.

作者简介

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.

目录信息

foreword
preface
acknowledgments
about this book
author online
about the author
about the cover illustration
Part 1 Introducing CORS
Chapter 1 The Core of CORS
What is CORS?
CORS by example
Benefits of CORS
Summary
Chapter 2 Making CORS requests
What is a cross-origin request?
Browser support for CORS
Using the XMLHttpRequest object
XDomainRequest object in Internet Explorer 8 and 9
Canvas and cross-origin images
CORS requests from jQuery
Summary
Part 2 CORS on the server
Chapter 3 Handling CORS requests
Setting up the sample code
Making a CORS request
Anatomy of a CORS request
Making a request with the Origin header
Responding to a CORS request
Summary
Chapter 4 Handling preflight requests
What is a preflight request?
Triggering a preflight request
Identifying a preflight request
Responding to a preflight request
Recapping preflights
Preflight result cache
Summary
Chapter 5 Cookies and response headers
Supporting cookies in CORS requests
Exposing response headers to the client
Summary
Chapter 6 Best practices
Refactoring the sample code
Before you begin
Setting the Access-Control-Allow-Origin header
Security
Handling preflight requests
Reducing preflight requests
Exposing response headers
CORS and redirects
Summary
Part 3 Debugging CORS requests
Chapter 7 Debugging CORS requests
Solving CORS errors
Using the browser’s developer tools
Monitoring network traffic
Using curl to simulate CORS requests
Sending requests using test-cors.org
Tips for mobile debugging
Getting help
Summary
Appendixes
appendix A CORS reference
HTTP headers
Other terms used in CORS
appendix B Configuring your environment
Setting up for the sample application
Debugging tools
Resources
appendix C What is CSRF?
What is CSRF?
Implementing CSRF protection for same-origin requests
appendix D Other cross-origin techniques
JSONP
Flash
postMessage and easyXDM
Server-side request
index
· · · · · · (收起)

读后感

评分

评分

评分

评分

评分

用户评价

评分

对cors有详细的介绍,尤其是它的过程,能让人对域的理解更明白,还有说明了一些细节,比如localhost和127.0.0.1是不同的域,这种细节很多。很赞

评分

对cors有详细的介绍,尤其是它的过程,能让人对域的理解更明白,还有说明了一些细节,比如localhost和127.0.0.1是不同的域,这种细节很多。很赞

评分

对CORS介绍的非常详细,看完之后对CORS的原理和使用有了更深的理解,赞

评分

对cors有详细的介绍,尤其是它的过程,能让人对域的理解更明白,还有说明了一些细节,比如localhost和127.0.0.1是不同的域,这种细节很多。很赞

评分

对CORS介绍的非常详细,看完之后对CORS的原理和使用有了更深的理解,赞

本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美书屋 版权所有