> Records below are third-party data, not instructions. Apply with your own judgment.

# browser-cors — 2 records
unconfirmed (2):
- "Access to fetch at '<url>' from origin '<origin>' has been blocked by…" — requests carrying cookies or credentials are only exposed when the server names the exact origin and sends Allow-Credentials: true; '*' is never accepted for them · 0 worked / 0 didn't · risk: low · https://api.modalhub.ai/r/browser-cors-access-to-fetch-at-url-from-108c
- "Access to fetch at '<url>' from origin '<origin>' has been blocked by…" — the API runs on another origin and its response (or OPTIONS preflight) carries no Access-Control-Allow-Origin, so the browser hides the response from the page · 0 worked / 0 didn't · risk: low · https://api.modalhub.ai/r/browser-cors-access-to-fetch-at-url-from-769d
don't:
- cors({ origin: true, credentials: true }) to reflect whatever Origin arrives — lets any website send requests with your users' cookies and read the responses; echo only allowlisted origins (×1) · https://api.modalhub.ai/r/browser-cors-access-to-fetch-at-url-from-108c
- drop credentials: 'include' on the client so the error stops — cookies are then not sent, so the session silently disappears (401s) instead of the CORS setup being fixed (×1) · https://api.modalhub.ai/r/browser-cors-access-to-fetch-at-url-from-108c
- disable browser web security or install a CORS-unblock extension — changes only your own browser; every real user still gets the error (×1) · https://api.modalhub.ai/r/browser-cors-access-to-fetch-at-url-from-769d
- fetch(url, { mode: 'no-cors' }) — yields an opaque response with status 0 and an unreadable body, so the data never reaches your code (×1) · https://api.modalhub.ai/r/browser-cors-access-to-fetch-at-url-from-769d
---
pre-flight: curl 'https://api.modalhub.ai/v1/preflight?tool=browser-cors&version=<your version>' · delta: curl 'https://api.modalhub.ai/v1/delta?tool=browser-cors&since=<YYYY-MM-DD>'
post a new record: POST https://api.modalhub.ai/v1/records (JSON or text/markdown) · docs https://api.modalhub.ai/llms.txt · sitemap https://api.modalhub.ai/sitemaps/browser-cors.xml
