Suche senden
Hochladen
クロスドメイン処理
•
Als PPTX, PDF herunterladen
•
6 gefällt mir
•
13,791 views
Yoshifumi Sato
Folgen
クロスドメイン処理について簡単にまとめてみた。
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 14
Jetzt herunterladen
Empfohlen
JavaScriptで加速度・回転情報を取得してみた
JavaScriptで加速度・回転情報を取得してみた
iPride Co., Ltd.
20161114 よくわかるcsrf
20161114 よくわかるcsrf
Yoshiki TAKADA
Node.js で SPDYのベンチマーク体験サイトを作りました
Node.js で SPDYのベンチマーク体験サイトを作りました
shigeki_ohtsu
mrubyのすすめ
mrubyのすすめ
masayoshi takahashi
MySQL Casual Talks Vol.3 LT
MySQL Casual Talks Vol.3 LT
Tomohiro Ikeda
Zabbix study5lt
Zabbix study5lt
Tomohiro Ikeda
VBScriptのダメなところ~その1~
VBScriptのダメなところ~その1~
bouzuya
EWD 3トレーニングコース#8 ewd-xpressメッセージ・サイクルの解剖
EWD 3トレーニングコース#8 ewd-xpressメッセージ・サイクルの解剖
Kiyoshi Sawada
Empfohlen
JavaScriptで加速度・回転情報を取得してみた
JavaScriptで加速度・回転情報を取得してみた
iPride Co., Ltd.
20161114 よくわかるcsrf
20161114 よくわかるcsrf
Yoshiki TAKADA
Node.js で SPDYのベンチマーク体験サイトを作りました
Node.js で SPDYのベンチマーク体験サイトを作りました
shigeki_ohtsu
mrubyのすすめ
mrubyのすすめ
masayoshi takahashi
MySQL Casual Talks Vol.3 LT
MySQL Casual Talks Vol.3 LT
Tomohiro Ikeda
Zabbix study5lt
Zabbix study5lt
Tomohiro Ikeda
VBScriptのダメなところ~その1~
VBScriptのダメなところ~その1~
bouzuya
EWD 3トレーニングコース#8 ewd-xpressメッセージ・サイクルの解剖
EWD 3トレーニングコース#8 ewd-xpressメッセージ・サイクルの解剖
Kiyoshi Sawada
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Weitere ähnliche Inhalte
Empfohlen
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Empfohlen
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
クロスドメイン処理
1.
クロスドメイン処理について
2.
クロスドメイン通信とは? クロスドメイン通信とは、 ホストが異なるサーバーへアクセスすること。 サーバーA
サーバーB
3.
実は、クロスドメイン処理は禁止されて
いる。 サーバーA サーバーB 禁止
4.
なぜクロスドメイン通信は 禁止されているのか? ①クロスサイトスクリプティングが効 果的
にならないようにするため。 ②DoS攻撃に使われないようにするた め。
5.
①クロスサイトスクリプティングが効果 的
にならないようにするため。 文字などを残せる掲示板などに、文字列でない、スクリプトを送り、 サイト側で、そのスクリプトを排除する仕組みがなければ、そのス クリプトが実行される。 もし、クロスドメイン通信が可能になれば、そのスクリプトで、攻 撃者のサーバーに、ユーザーのCookieなどの情報が送られ、悪用さ れる可能性がある。 サーバー 攻撃者のサーバー Cookieなどの 情報
6.
②DoS攻撃に使われないようにするため。 特定のサーバへ短期間の連続アクセスをするスクリ プトを書くことで、ユーザーにサーバ攻撃の肩代わ りをさせることが可能になる。
攻撃対象のサーバー
7.
クロスドメイン通信は禁止されてい るが、実は例外的に可能にする方法
がある。 ①JSONP ②XMLHttpRequest Level2 今回は、JSONPを使った、クロスドメイン処理 の方法を説明。
8.
JSONPとは? Scriptタグを使用して、クロスドメイン通信で データを取得する仕組みのこと。 HTMLとjavascriptとjsonを組み合わせて実現可能。
9.
具体的なJSONPの実装
10.
①データを受け渡す側の、データ出力の方法。
下の場合、サーバーB側の実装。 サーバーA サーバーB ここの実装
11.
Json形式のデータを引数とする関数をつ
くり、それを出力する。 sample.jsonファイルを作成し、出力する。 callbackという関数を定義。 JSON形式のデータ 関数の名前は任意
12.
②データを受けとる側の実装。
下の場合、サーバーA側の実装。 サーバーA サーバーB ここの実装
13.
Javascriptで、Callback関数を定義する。 また、外部のデータsample.jsonを読み取るようにす
る。 順番が重要である。逆にしたら読み取れない。 Index.htmlファイル
14.
RailsでのJSON形式を引数とする関数の出力の方法。 Railsでは非常に簡単に実装できるようになってい
る。 コントローラーにjsonというアクションをつくり、renderメソッドを使い、 json形式を引数とする関数が定義されたものが出力される。 Callback : “関数名” で関数名を定義できるので、callbackという名前でなくて もいい。
Jetzt herunterladen