From 4a0e76f4eace3287ff5f8ef81e68d7e5ce32c692 Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Wed, 10 Jul 2024 19:05:16 -0700 Subject: [PATCH] update parens --- typescript/fiddle-proxy/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/fiddle-proxy/server.js b/typescript/fiddle-proxy/server.js index 27bb03c98..ccc7b469d 100644 --- a/typescript/fiddle-proxy/server.js +++ b/typescript/fiddle-proxy/server.js @@ -79,7 +79,7 @@ app.use( const proxyOrigin = new URL(bamlOriginalUrl).origin // It is very important that we ONLY resolve against API_KEY_INJECTION_ALLOWED // by using the URL origin! (i.e. NOT using str.startsWith - the latter can still - // leak API keys to malicious subdomains e.g. https://api.openai.com.evil.com + // leak API keys to malicious subdomains e.g. https://api.openai.com.evil.com) const headers = API_KEY_INJECTION_ALLOWED[proxyOrigin] if (headers === undefined) { return