Which behavior occurs when a browser encounters a ‘fetch’ request with ‘credentials: same-origin’ to a different domain?
Key points
- same-origin mode restricts credentials to the origin.
- Cross-origin requests with this mode omit cookies.
- This is the default behavior for fetch requests.
- CORS headers cannot override this specific restriction.
Ready to go further?
