Skip to content

Commit

Permalink
PharmaLedger-IMI/epi-workspace#1143 registering the epiprotocolversio…
Browse files Browse the repository at this point in the history
…n header for a proper CORS response
  • Loading branch information
asaccool committed Jan 4, 2023
1 parent 0b18353 commit c9e7b5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/leaflet-web-api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const XMLDisplayService = require("./../services/XMLDisplayService/XMLDisplaySer
const LeafletInfoService = require("./../services/LeafletInfoService");

function getWebLeaflet(server) {

server.registerAccessControlAllowHeaders(["epiprotocolversion"]);

const logger = $$.getLogger("leaflet-web-api", "getWebLeaflet");
server.get("/leaflets/:domain", async function (request, response) {

Expand Down

0 comments on commit c9e7b5a

Please sign in to comment.