DEV Community

loading...

Discussion on: ✋🏼🔥 CS Visualized: CORS

Collapse
pavelloz profile image
Paweł Kowalski • Edited

Let’s say we’re trying to fetch some user information on our mywebsite.com website from a server that’s located at api.website.com!
...
Let's try the exact same request but from another domain. Instead of making the request from mywebsite.com, we’re now making the request from a website located at anotherdomain.com.

Either i dont understand the next couple sentences explaining how to tell if request is cross origin, or there is an error here, because it looks to me that both requests have been cross origin ;)

Collapse
jeromefitzpatrick profile image
jeromefitzpatrick

@Pawel Kowalski

You are correct - either this is an error or maybe api.website.com allows the mywebsite.com origin!