teunmooij / payload-tools

Collection of payload plugins and tools: payload-openapi, payload-swagger, create-payload-api-docs, payload-rbac
https://github.com/teunmooij/payload-tools/#readme
MIT License
94 stars 12 forks source link

[Bug]: Authorization header missing from requests to custom endpoint #81

Open blobmold opened 7 months ago

blobmold commented 7 months ago

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

  1. Define a custom endpoint with a middleware that protects it via checking the authorization header
  2. Attempt to send the request

Authorization header will be missing

Tool version

1.4.0

Payload version

^2.0

Node version

20