Skip to content

Instantly share code, notes, and snippets.

@taisyo7333
Last active February 2, 2017 05:02
Show Gist options
  • Save taisyo7333/ffaa21fe08415021803fa60061fb2290 to your computer and use it in GitHub Desktop.
Save taisyo7333/ffaa21fe08415021803fa60061fb2290 to your computer and use it in GitHub Desktop.
Cross-Domain-Request

概要

クロスドメイン問題対策に関する記事

クロスドメイン問題とは?

対策

3種類の解決方法がある。

1. XDM (Cross Document Messagging)

2. CORS (Cross-Origin Resource Sharing)

3. JSONP (JSON with Pudding)

  • JQuery で ajaxを使うときはこれを使っているのか?
  • 古くからはる手法。
  • 昔のブラウザでも使用可能
  • 広く一般で使用される様なサービス向け(Bing Map, Google Mapなど)
  • 厳格なセキュリティを要求しない汎用サービス向け

参照記事

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment