View more context

 

Firesphere

CORS stands for "Cross Origin Request {something}"

Firesphere

CORS has been quite a pain for a lot of devs, I feel ya, I've had to figure it out a lot, because GraphQL does not work with CORS nicely when the endpoint has CORS enabled

Firesphere

https://www.codecademy.com/articles/what-is-cors

Show 1 attachment(s)
Codecademy  
What is CORS? | Codecademy

Resources on servers (like web pages) often make requests to load resources on other servers. In this article, you'll learn how these requests are managed with CORS.. Codecademy is the easiest way to learn how to code. It&#39s interactive, fun, and you can do it with your friends.

Hide attachment content
Firesphere

That's quite a readable and friendly explanation of what CORS is

flamerohr

yeah, CORS has way too many switches to is to dot and ts to cross

Firesphere

In the very basics, it's saying "Your neighbour should not be able to request information from your home"

Firesphere

But it's switches, options, etc...... are.... too much to handle. It's actually why CSP came to life, because it's more logical and controllable than CORS

Firesphere

Yet, CORS exists, and it's an accepted standard, so you'll have to work with it.