Re:CORS is not meant to secure an API endpoint
by casion on Sunday February 13, 2022 @10:08AM
(#30322139)
"Lock with no keys" isn't particularly uncommon. They exist in the real world as one-way devices.
Re:CORS is not meant to secure an API endpoint
by iakh on Sunday February 13, 2022 @10:44AM
(#30322433)
There's a while saying dedicated to it, "lock them up and throw away the key".
Re:CORS is not meant to secure an API endpoint
by pshc on Sunday February 13, 2022 @10:50AM
(#30322521)
Hahah, alright. I'll grant you that. The lock:CORS metaphor was tenuous at inception, and now it is truly vaporized.
Re:CORS is not meant to secure an API endpoint
by Dylan16807 on Monday February 14, 2022 @11:50AM
(#30334235)
Notice how nobody ever does that with an actual lock. It's a metaphor for never letting them go free.
If you offer a website with an API then CORS is an enhancement in that you're helping protect users from getting owned or hijacked. Alternatively if you can't stomach the risk, you could take down your API, which is about as useful as solving a math equation by multiplying both sides by zero.