Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Cross-origin resource sharing
Search
Dmitry Zhlobo
July 02, 2015
Programming
1
78
Cross-origin resource sharing
Dmitry Zhlobo
July 02, 2015
Tweet
Share
More Decks by Dmitry Zhlobo
See All by Dmitry Zhlobo
Growing Rails Apps
dimazhlobo
1
160
Rails: The Good Parts
dimazhlobo
2
140
Ethereum Smart Contracts For Developers
dimazhlobo
0
120
Elasticsearch Introduction
dimazhlobo
0
750
Ruby Code Analisis
dimazhlobo
7
850
Other Decks in Programming
See All in Programming
The Ralph Wiggum Loop: First Principles of Autonomous Development
sembayui
0
3.7k
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
540
AI活用のコスパを最大化する方法
ochtum
0
130
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
230
TROCCOで実現するkintone+BigQueryによるオペレーション改善
ssxota
0
160
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
110
Codex の「自走力」を高める
yorifuji
0
1.1k
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
150
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
520
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
190
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
110
Docコメントで始める簡単ガードレール
keisukeikeda
1
110
Featured
See All Featured
Accessibility Awareness
sabderemane
0
74
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
The SEO Collaboration Effect
kristinabergwall1
0
380
Google's AI Overviews - The New Search
badams
0
930
エンジニアに許された特別な時間の終わり
watany
106
240k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
69
Raft: Consensus for Rubyists
vanstee
141
7.3k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
630
Designing Powerful Visuals for Engaging Learning
tmiket
0
260
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
76
What does AI have to do with Human Rights?
axbom
PRO
1
2k
[SF Ruby Conf 2025] Rails X
palkan
2
820
Transcript
CORS Cross-origin resource sharing
Whitelist • <script> • <img> • <iframe> • <embed>
But XMLHttpRequest
XSS
Same origin
What to do? • WebSockets • Cross-document messaging • JSONP
• CORS
JSONP <script src=“http://otherdomain.com/test.json"> callback({"how" : "it works"})
CORS OPTIONS /test.json Host: example.com Origin: http://sbdmn.example.com Access-Control-Allow-Origin: http://sbdmn.example.com Access-Control-Allow-Methods:
GET, POST
CORS • Request: • Origin • Access-Control-Request-Method • Access-Control-Request-Headers •
Response: • Access-Control-Allow-Origin • Access-Control-Allow-Credentials • Access-Control-Expose-Headers • Access-Control-Max-Age • Access-Control-Allow-Methods • Access-Control-Allow-Headers
Questions?