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 with cookie test=test

Same origin request to with cookie corstest=corstest

Image below