Skip to content

Commit

Permalink
Adding "Accept" as an allowed header
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Feb 12, 2025
1 parent a6efbd0 commit 6f6dbdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/services/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class ApiService {
const url = `${event.path}?${queryString}`;

console.log(`Sending ${method} request to ${url}`);
console.log(`Headers: ${headers}`);
console.log(`Body: ${body}`);
console.log(`Headers: ${{ headers }}`);
console.log(`Body: ${{ body }}`);

let data;

Expand Down
1 change: 1 addition & 0 deletions aws/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as qs from "qs";
// These are the list of Headers imported from SCV
// Only include headers from the original request when present.
const allowedHeaders = new Set([
"Accept",
"applicationCd",
"correlationId",
"deviceNm",
Expand Down

0 comments on commit 6f6dbdc

Please sign in to comment.