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介紹的非常詳細,看完之後對CORS的原理和使用有瞭更深的理解,贊

评分

對cors有詳細的介紹,尤其是它的過程,能讓人對域的理解更明白,還有說明瞭一些細節,比如localhost和127.0.0.1是不同的域,這種細節很多。很贊

评分

對cors有詳細的介紹,尤其是它的過程,能讓人對域的理解更明白,還有說明瞭一些細節,比如localhost和127.0.0.1是不同的域,這種細節很多。很贊

评分

詳細的介紹瞭CORS在瀏覽器端,和服務器端的配置和應用,以及如何debug與抓包分析。解說和仔細,顯得有點囉嗦。

本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

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