Skip to content

Commit

Permalink
Merge pull request #2892 from opral/add_autocaputre_feature
Browse files Browse the repository at this point in the history
update telemtry proxy
  • Loading branch information
jannesblobel authored Jun 6, 2024
2 parents 4eea76a + 1cb6c60 commit f4f7aba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nine-apes-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inlang/telemetry-proxy": patch
---

added proxy response
4 changes: 3 additions & 1 deletion inlang/source-code/telemetry-proxy/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const isProduction = process.env.NODE_ENV === "production"
const app = express()

// ----------------- ROUTES ----------------------

app.use(
"*",
createProxyMiddleware({
Expand All @@ -17,6 +16,9 @@ app.use(
onProxyReq: (req) => {
req.path
},
onProxyRes: (proxyRes) => {
proxyRes.headers["Access-Control-Allow-Origin"] = "null"
},
})
)

Expand Down

0 comments on commit f4f7aba

Please sign in to comment.