Allow browser options request through key-auth
See original GitHub issueThe browser sends a preflight OPTIONS
request before each request I send to express gateway. I have key-auth
configured for express-gateway, and for all requests without an authorization header, express gateway responds with a 403 error. How do I whitelist only OPTIONS
requests to bypass the key-auth
?
Is this is the recommended approach?
label: Question
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Bug: key-auth plugin validating OPTIONS requests with CORS ...
If browser truncating query param, we may need to add a flag in Key Auth plugin (or other Auth plugins) config to allow...
Read more >Why is an OPTIONS request sent and can I disable it?
According to the CORS strategy (highly recommend you read about it) You can't just force the browser to stop sending OPTIONS request if...
Read more >Key Authentication plugin | Kong Docs
Keys are encrypted at rest in the API gateway datastore. PermalinkConfiguration Reference. This plugin is partially compatible with DB-less mode. In DB-less ...
Read more >Authorizing requests - Postman Learning Center
With API key auth, you send a key-value pair to the API either in the request headers or query parameters. In the request...
Read more >Authentication — API Key Auth - Zapier Platform UI
API Key authentication lets apps verify users' account with an API key that is passed along with every API call. In a Zapier...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve responded to the issue some days ago. Did you try the solution?
Hey animysore, I’m facing exactly the same problem right now.
I have set the problem to Stackoverflow, have a look.
cheers