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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
The Rails Doctrine Decade
koic
2
590
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
480
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
気持ちぃ〜角丸 Squircle
ryu1013
0
310
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
Railsバージョンを4倍にした話
optim
0
400
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
230
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
Featured
See All Featured
Marketing to machines
jonoalderson
1
5.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
600
GraphQLとの向き合い方2022年版
quramy
50
15k
Making Projects Easy
brettharned
120
6.8k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
410
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
A Tale of Four Properties
chriscoyier
163
24k
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?