]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
server : allow CORS request with authorization headers (#1850)
authorValentin Gosu <redacted>
Fri, 9 Feb 2024 15:42:41 +0000 (16:42 +0100)
committerGitHub <redacted>
Fri, 9 Feb 2024 15:42:41 +0000 (17:42 +0200)
commit80e8a2ea39d74a8856224ef2c7179f34cdb2f92b
treebf2bbf9ff56a60fc087d4e5555318f4b7ee641e6
parent19f8048139e0a05f4a511f1781d9b78b82f11260
server : allow CORS request with authorization headers (#1850)

Whisper plugin in Obsidian requires an API key which is
then sent as an authorization header.
However, the presence of an authorization header requires
a CORS Preflight, so both the OPTIONS method and
the Access-Control-Allow-Headers: authorization must be
handled.
examples/server/server.cpp