Check network tab of developer tools for cookies in requests.

The buttons do a http request to an API that returns a cookie. The first one should get the cookie and the second one should sent the cookie

CORS requests to https://cors-test.appspot.com/test with cookie test=test



Same origin request to https://niklas.merz.dev/corstest/ with cookie corstest=corstest



Image below

NOTCORS CORS