Back to Remix

Minor.Initial Release

packages/cors-middleware/.changes/minor.initial-release.md

2.11.1416 B
Original Source

Add the initial release of @remix-run/cors-middleware.

  • Expose cors(options) for standard CORS response headers and preflight handling in Fetch API servers.
  • Support static and dynamic origin policies, credentialed requests, allowed and exposed headers, preflight max-age, and private network preflights.
  • Allow apps to either short-circuit preflight requests or continue them into custom OPTIONS handlers.