From ad50790af75121d9f62d1a7742c6bd9ca0c55a67 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 23 Oct 2019 16:12:20 +0200 Subject: [PATCH] Change geomapfish-demo exclude rule in check-example --- buildtools/check-example.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildtools/check-example.js b/buildtools/check-example.js index 189230bbdd02..e22b7206b5a2 100644 --- a/buildtools/check-example.js +++ b/buildtools/check-example.js @@ -104,11 +104,11 @@ function loaded(page, browser) { request.respond(ASITVDCapabilities); } else if (parse(url).host == parse(page_url).host || url.startsWith('http://localhost:3000/') || - url.startsWith('https://geomapfish-demo-2-5.camptocamp.com/') || + url.startsWith('https://geomapfish-demo') || url.startsWith('https://wmts.geo.admin.ch/') || url.startsWith('https://wms.geo.admin.ch/')) { requestsURL.add(url); - if (url.startsWith('https://geomapfish-demo-2-5.camptocamp.com/')) { + if (url.startsWith('https://geomapfish-demo')) { request.headers().origin = 'http://localhost:3000'; } request.continue(); @@ -131,7 +131,7 @@ function loaded(page, browser) { const url = request.url(); requestsURL.delete(url); loaded(page, browser); - if (ci && url.startsWith('https://geomapfish-demo-2-5.camptocamp.com/') && + if (ci && url.startsWith('https://geomapfish-demo') && request.headers()['sec-fetch-mode'] == 'cors' && request.response().headers()['access-control-allow-origin'] == undefined) { console.log(`CORS error on: ${url}`);