Skip to content

Commit

Permalink
Merge pull request #223 from terrestris/fix-cors
Browse files Browse the repository at this point in the history
fix: revert no-cors flag
  • Loading branch information
hwbllmnn authored Dec 8, 2022
2 parents 42c705c + 8a3496c commit 4be9047
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/parser/SHOGunApplicationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,7 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {

let capabilities;
try {
const capabilitiesResponse = await fetch(capabilitiesUrl, {
mode: 'no-cors'
});
const capabilitiesResponse = await fetch(capabilitiesUrl);
const capabilitiesResponseText = await capabilitiesResponse.text();

capabilities = wmtsCapabilitiesParser.read(capabilitiesResponseText);
Expand Down

0 comments on commit 4be9047

Please sign in to comment.