Change8

cors-middleware@0.1.0

📦 remixView on GitHub →
4 features🔧 2 symbols

Summary

This release introduces the initial version of @remix-run/cors-middleware, providing comprehensive support for configuring CORS policies in Fetch API servers. It also includes minor dependency bumps for related packages.

✨ New Features

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

Affected Symbols