graycoreio / magento2-cors

A Magento 2 module that enables configurable CORS Headers on the GraphQL and REST APIs

Home Page:https://packagist.org/packages/graycore/magento2-cors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Preflight Requests are missing their CORS headers when using Varnish

damienwebdev opened this issue Β· comments

πŸ› Bug report

Current Behavior

Currently, it appears as if the preflight request is being interpreted as a "GET".

Expected Behavior

I want cached options requests.

Minimal reproduction of the problem with instructions

Make an options request with varnish.

What is the motivation / use case for changing the behavior?

Performance improvements at scale.

Environment


magento2-cors version: 1.4.0
Magento version: 2.4.1
PHP Version version: any