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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Dmitry Zhlobo
July 02, 2015
Programming
91
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
190
Rails: The Good Parts
dimazhlobo
2
170
Ethereum Smart Contracts For Developers
dimazhlobo
0
140
Elasticsearch Introduction
dimazhlobo
0
780
Ruby Code Analisis
dimazhlobo
7
880
Other Decks in Programming
See All in Programming
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
540
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
320
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
5
510
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
510
AIに既存システムを理解させる技術 ~レガシーを見捨てないハーネスエンジニアリング入門~
ochtum
0
140
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
710
in-process GraphQL のすすめ #ginzajs
izumin5210
4
1.5k
Building a Meta Ray-Ban display app
akkeylab
0
180
バグを直したら useEffect が消えた
colorful12
3
690
仕様駆動開発の消費期限
watany
20
8.9k
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
1
760
React本体のコードリーディング
high_g_engineer
1
150
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
1
10k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.4k
Fireside Chat
paigeccino
42
4k
sira's awesome portfolio website redesign presentation
elsirapls
0
340
Exploring anti-patterns in Rails
aemeredith
3
470
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
660
Amusing Abliteration
ianozsvald
1
260
What's in a price? How to price your products and services
michaelherold
247
13k
GraphQLとの向き合い方2022年版
quramy
50
15k
The agentic SEO stack - context over prompts
schlessera
0
870
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
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?