We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c239164 commit 94052aeCopy full SHA for 94052ae
server/src/lib.rs
@@ -664,7 +664,10 @@ pub fn main() -> std::io::Result<()> {
664
665
HttpServer::new(move || {
666
App::new()
667
- .wrap(Cors::permissive())
+ .wrap(
668
+ Cors::permissive()
669
+ .allowed_header("TR-QueryId")
670
+ )
671
.app_data(PayloadConfig::new(134200000))
672
.wrap(middleware::json_middleware::JsonMiddlewareFactory)
673
.app_data(json_cfg.clone())
server/src/operators/message_operator.rs
@@ -717,7 +717,7 @@ pub async fn stream_response(
717
}
718
719
Ok(HttpResponse::Ok()
720
- .insert_header(("X-TR-QueryID", query_id.to_string()))
+ .insert_header(("TR-QueryID", query_id.to_string()))
721
.streaming(chunk_stream.chain(completion_stream)))
722
723
0 commit comments