[Bug]: Unable to use OpenAI API with an auth key via a web browser due to OPTIONS preflight request returning 401.
LostRuins opened this issue ยท 1 comments
LostRuins commented
Your current environment
Kobold Lite in Web Browser
๐ Describe the bug
Issue: Aphrodite requires OPTIONS preflight requests to also have Bearer Authorization to work. If it does not have a bearer token, the OPTIONS request will fail with a 401 (and thus terminating the linked GET request as well).
This is against spec, the OPTIONS requests sent by browsers do not (and cannot) include Authorization headers.
https://stackoverflow.com/questions/59681742/options-request-gets-a-401-unauthorized-response
Rather, the OPTIONS should return the necessary CORS allowed 200 responses regardless of key, then the authorization can be applied for the GET request instead.