Add INTERNAL_API_KEY authentication for error_log_api; update all services to send key
This commit is contained in:
@@ -35,7 +35,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: "employee_api",
|
||||
partofservice,
|
||||
|
||||
Reference in New Issue
Block a user