Add INTERNAL_API_KEY authentication for error_log_api; update all services to send key
This commit is contained in:
+4
-1
@@ -39,7 +39,10 @@ async function reportError({ partofservice, error }) {
|
||||
try {
|
||||
await fetch(ERROR_LOG_API_URL, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"x-internal-api-key": process.env.INTERNAL_API_KEY || "",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
service: "auth_api",
|
||||
partofservice,
|
||||
|
||||
Reference in New Issue
Block a user