-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWT plugin also blocks OPTIONS pre-flight messages #2643
Comments
workaround: #1535 (comment) |
@Tieske Maybe I didn't look closely enough, but can you apply the plugin to all APIs and then remove it for certain APIs (like for options?). Ideally we don't want the overhead/risk of having to remember to apply to all new APIs |
@jamestenglish currently there is no negative model for global plugin assignment (e.g., there is no way to apply a plugin to all execept |
@p0pr0ck5 , Just a little clarification on your workaround:
Does this mean i need to --- EDIT --- |
@lucastheisen Please see the docs https://getkong.org/docs/latest/proxy/ |
Summary
Current the JWT plugin also blocks OPTIONS requests. Many libraries don't give the user the option to specify headers for the OPTIONS pre-flight. I.E. Angular HTTP module
Steps To Reproduce
Additional Details & Logs
Workaround
Currently you append
?jwt=....
to your URLs along with configuring the authorization header, but that makes the urls super uglyThe text was updated successfully, but these errors were encountered: