Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
refactor(routes/forward): chain response functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 17, 2023
1 parent 154ba01 commit d2eeff4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/routes/forward/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ async function route(server, options) {
* Remove headers set by Mirth Connect that are either inaccurate
* or pose security risks
*/
reply.removeHeader("access-control-allow-headers");
reply.removeHeader("access-control-allow-methods");
reply.removeHeader("access-control-expose-headers");
reply.removeHeader("etag");
reply.removeHeader("last-modified");
reply.removeHeader("location");
reply.removeHeader("server");

reply.send(targetResponse);
reply
.removeHeader("access-control-allow-headers")
.removeHeader("access-control-allow-methods")
.removeHeader("access-control-expose-headers")
.removeHeader("etag")
.removeHeader("last-modified")
.removeHeader("location")
.removeHeader("server")
.send(targetResponse);
},
});
},
Expand Down

0 comments on commit d2eeff4

Please sign in to comment.