payload-tools
payload-tools copied to clipboard
[Bug]: Authorization header missing from requests to custom endpoint
Package name
payload-openapi
What happened?
I am using Swagger to send authorized requests to custom endpoint that expects authorization header, but swagger does not seem to send it.
What did you expect
No response
Setps to reproduce
- Define a custom endpoint with a middleware that protects it via checking the authorization header
- Attempt to send the request
Authorization header will be missing
Tool version
1.4.0
Payload version
^2.0
Node version
20