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
Dmitry Zhlobo
July 02, 2015
Programming
100
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
210
Rails: The Good Parts
dimazhlobo
2
190
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
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
190
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
300
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1.6k
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
170
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
300
小さなアプリを作って公開するまで
onozaty
0
140
Crash Auto Pipelines
veronikapj
1
390
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
1
290
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.8k
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
180
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
540
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
580
Building an army of robots
kneath
307
47k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
440
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
390
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
エンジニアに許された特別な時間の終わり
watany
109
250k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
550
Fireside Chat
paigeccino
43
4.1k
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?