Skip to content

cors-middleware v0.2.0

Choose a tag to compare

@github-actions github-actions released this 18 Sep 22:38
bfdf7ab

Minor Changes

  • BREAKING CHANGE: cors({ credentials: true }) now preserves the default Access-Control-Allow-Origin: * response. Applications that intentionally allow credentialed requests from any origin must configure origin: '*' explicitly; applications with a restricted origin policy should continue to configure an exact origin, pattern, array, or resolver.

Patch Changes

  • Include Access-Control-Request-Private-Network in Vary on all allowed preflight responses when allowPrivateNetwork is enabled, so caches distinguish ordinary preflights from private network preflights. This also applies when preflightContinue is enabled.

  • Bumped @remix-run/* dependencies: