Fearless CORS: a design philosophy for CORS middleware libraries (and a Go implementation)

from blog Posts on jub0bs.com, | ↗ original
TL;DR ¶ In this post, I investigate why developers struggle with CORS and I derive Fearless CORS, a design philosophy for better CORS middleware libraries, which comprises the following twelve principles: Optimise for readability Strive for a simple and cohesive API Provide support for Private Network Access Categorise requests correctly Validate...