gray-machine-46287
11/23/2022, 4:48 PM- SERVE_PUBLIC_CORS_ENABLED=true
- SERVE_PUBLIC_CORS_DEBUG=true
- SERVE_PUBLIC_CORS_ALLOWED_ORIGINS=<https://www.allowed.com>
- SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST
- SERVE_PUBLIC_CORS_ALLOW_CREDENTIALS=false
But then when I run
curl --location --request OPTIONS 'localhost:4444/oauth2/token' \
--header 'Origin: <https://www.hacker.com>' \
--header 'Access-Control-Request-Method: GET'
I get in my return headers:
Access-Control-Allow-Methods: GET
Access-Control-Allow-Origin: <https://www.hacker.com>
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Date: ...
Which should not be allowed origins nor methods 😞
What am I misunderstanding or doing wrong? 🙂 🙏gray-machine-46287
11/24/2022, 8:04 AM