~/talk

No, It's Not a CORS Error

TalkinFrenchat Devoxx France 2024 · 2024-04-17..04-19· [web-platform, security]
links:none on file
slides:none on file

Shows why browser CORS errors often mask the real cause by demoing a simple frontend with a misconfigured Rust backend and an API gateway that alters preflight behavior and headers. Demonstrates that browsers will block requests even when the server returns 200/500, that intermediaries can overwrite Access-Control-Allow-Origin and drop headers, and that missing or changed Access-Control-Allow-Methods or preflight responses produce silent failures. Recommends inspecting F12 network headers (curl bypasses CORS) and ensuring the called service emits the correct CORS headers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03CORS necessity
  3. 2:48CORS request types
  4. 4:33Practical demo
  5. 11:23Misleading CORS errors
  6. 12:07Best practices
~/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.