Skip to content

Commit

Permalink
Change geomapfish-demo exclude rule in check-example
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Oct 23, 2019
1 parent d05eaf6 commit ad50790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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}`);
Expand Down

0 comments on commit ad50790

Please sign in to comment.