~/talk

CORS: Cross-domain requests with JavaScript

Talkat Web Directions South 2013 · 2013-10-24..10-25· [web-platform, security]
links:none on file
slides:none on file

CORS lets browsers make true cross-origin REST calls (GET/POST/PUT/DELETE) by using a pre-flight OPTIONS handshake and response headers like Access-Control-Allow-Origin. It supports cookies and single-sign on when allow-credentials is enabled, but requires server-side logic (rack-cors, servlet filter or Express middleware) to echo/originate and whitelist hosts and ports. JSONP’s eval-and-GET limitation is avoided, latency from proxy middleware is removed, and this approach reliably works once headers and pre-flights are correct.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Integration in the browser
  3. 1:28but - same origin policy?
  4. 3:41JSON-P cross domain
  5. 6:14CORS - client side ex.
  6. 6:46How it works
  7. 8:06Security Theatre?
  8. 8:53Common pattern
  9. 9:48Middleware
  10. 10:37Authorization
  11. 10:55Debugging
  12. 11:51My Minimal Setup
  13. 12:09Example (express)
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.