How to make OapiRequestValidator reject requests with unknown headers? #745
Unanswered
BuilderHarrison
asked this question in
Q&A
Replies: 1 comment
-
Hmm, ignoring unknown headers I don't believe is possible without extra middleware. What are you trying to solve with this approach? The risk is that if an API client goes through various network proxies / load balancers, additional headers may be added, which would then cause the request to be rejected for unrelated reasons |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
following up from my last question, I was wondering if there is a way with OapiRequestValidator to make it reject unknown headers?
Here is the swagger spec is the following and I implement OapiRequestValidator in the server handler.
Can this be achieved?
Beta Was this translation helpful? Give feedback.
All reactions