Replies: 2 comments
-
Its likely because this matcher contains a variable which is not allowed. Next needs to be able to statically analyze the matcher: #38461 |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you want the middleware to run only if the request does NOT have the exact Authorization header, modify your matcher like this:
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Question
I am getting weird issue where my middleware config still shoots on the requests which have certain header.
Can you explain in details how
missing
andhas
work?The middleware should only run for non-static assets and at the same time not having certain value for
Authorization
header.Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions