Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Cross-origin resource sharing
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Dmitry Zhlobo
July 02, 2015
Programming
99
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Cross-origin resource sharing
Dmitry Zhlobo
July 02, 2015
More Decks by Dmitry Zhlobo
See All by Dmitry Zhlobo
Growing Rails Apps
dimazhlobo
1
200
Rails: The Good Parts
dimazhlobo
2
180
Ethereum Smart Contracts For Developers
dimazhlobo
0
160
Elasticsearch Introduction
dimazhlobo
0
800
Ruby Code Analisis
dimazhlobo
7
890
Other Decks in Programming
See All in Programming
ActionController meets Protocol Buffers
sorah
0
630
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
130
APNsからLive Activityを開始する話
yumnumm
0
170
dotNET_vulnclicker_intro.pdf
deka_morita
0
150
Jetpack Compose Mechanisms
skydoves
3
840
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
160
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
180
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
410
GraphQL の onError と Nullability のこれから
quramy
0
130
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
2
1.1k
パスワード再設定メールのURLについて知っておこう
uyuki234
0
170
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
840
Featured
See All Featured
How to Ace a Technical Interview
jacobian
280
24k
Thoughts on Productivity
jonyablonski
76
5.4k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
540
Are puppies a ranking factor?
jonoalderson
2
4.1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Tell your own story through comics
letsgokoyo
1
1.1k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Making the Leap to Tech Lead
cromwellryan
135
10k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
480
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?