Skip to content

Commit

Permalink
update parens
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Jul 11, 2024
1 parent 9ed6479 commit 4a0e76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/fiddle-proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a0e76f

Please sign in to comment.