mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 23:59:02 +01:00
server : set default CORS headers to allow all (#1567)
This commit is contained in:
parent
641f2f4282
commit
6b094b6dfe
@ -468,6 +468,9 @@ int main(int argc, char ** argv) {
|
|||||||
whisper_ctx_init_openvino_encoder(ctx, nullptr, params.openvino_encode_device.c_str(), nullptr);
|
whisper_ctx_init_openvino_encoder(ctx, nullptr, params.openvino_encode_device.c_str(), nullptr);
|
||||||
|
|
||||||
Server svr;
|
Server svr;
|
||||||
|
svr.set_default_headers({{"Server", "whisper.cpp"},
|
||||||
|
{"Access-Control-Allow-Origin", "*"},
|
||||||
|
{"Access-Control-Allow-Headers", "content-type"}});
|
||||||
|
|
||||||
std::string const default_content = "<html>hello</html>";
|
std::string const default_content = "<html>hello</html>";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user