From 5e4bf6cad86c2b5dd951e9c93d3e143b63fb38fa Mon Sep 17 00:00:00 2001 From: Sunrise Date: Fri, 5 Jul 2024 15:24:32 +0800 Subject: [PATCH] Update CORS resp headers --- src/mockgpt/cors.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mockgpt/cors.cr b/src/mockgpt/cors.cr index 08b5b46..f6ad3c7 100644 --- a/src/mockgpt/cors.cr +++ b/src/mockgpt/cors.cr @@ -2,7 +2,7 @@ class CrossOriginResourceSharing include HTTP::Handler def call(context : HTTP::Server::Context) - context.response.headers.add "Server", "Grip/v2" + context.response.headers.add "Server", "Grip/v3" context.response.headers.add "Access-Control-Allow-Origin", "*" context.response.headers.add "Access-Control-Allow-Headers", "*" context.response.headers.add "Access-Control-Allow-Credentials", "true"