Cors Configurator

Diagnose and fix a failing cross-origin browser request — read the exact console error, work out whether it's a simple or preflighted request, and set the minimal correct Access-Control-* response headers (including the wildcard-with-credentials trap and the OPTIONS preflight) on the server. Use when the browser blocks a fetch/XHR with a CORS error but the API itself works from curl or Postman.

imtiazrayhan Updated

File contents

imtiazrayhan/agentscamp-library/tree/main/skills/cors-configurator commit 0cd9f2f4b0

Frequently asked questions

npx skillmds@latest add imtiazrayhan/cors-configurator