{"action":"created","issue":{"url":"https://api.github.com/repos/fearlessjake/wamap/issues/7","repository_url":"https://api.github.com/repos/fearlessjake/wamap","labels_url":"https://api.github.com/repos/fearlessjake/wamap/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/fearlessjake/wamap/issues/7/comments","events_url":"https://api.github.com/repos/fearlessjake/wamap/issues/7/events","html_url":"https://github.com/fearlessjake/wamap/issues/7","id":386186564,"node_id":"MDU6SXNzdWUzODYxODY1NjQ=","number":7,"title":"data.cardinalguild.com cannot handle CORS-preflight OPTIONS request","user":{"login":"krugar","id":109856,"node_id":"MDQ6VXNlcjEwOTg1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/109856?v=4","gravatar_id":"","url":"https://api.github.com/users/krugar","html_url":"https://github.com/krugar","followers_url":"https://api.github.com/users/krugar/followers","following_url":"https://api.github.com/users/krugar/following{/other_user}","gists_url":"https://api.github.com/users/krugar/gists{/gist_id}","starred_url":"https://api.github.com/users/krugar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krugar/subscriptions","organizations_url":"https://api.github.com/users/krugar/orgs","repos_url":"https://api.github.com/users/krugar/repos","events_url":"https://api.github.com/users/krugar/events{/privacy}","received_events_url":"https://api.github.com/users/krugar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-30T13:25:11Z","updated_at":"2018-11-30T14:14:44Z","closed_at":null,"author_association":"NONE","body":"Ahoy mateys, these be great maps yer makin'! :+1: \r\nThanks a lot for your work here, much appreciated!\r\n\r\nHowever, it appears that the Varnish server at data.cardinalguild.com fails to answer the CORS-preflight OPTIONS request, leading to an empty map when viewed in Firefox (it works in Chrome). The Nginx running at surveyor.cardinalguild.com is configured to correctly reply to the request, so I'm assuming you understand the problem. [Link to relevant CORS documentaton](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin), just in case :) Sadly I have no experience with Varnish (and/or Fastly?), hence no tips there.\r\n\r\n---\r\n\r\nSteps to reproduce: open the map in firefox.\r\n\r\nConsole output on firefox:\r\n```\r\n13:48:25.302 Service workers are not supported. fb3f8b68867fac4ed6f5.js:1:2774\r\n13:48:25.510 Loading islands from surveyor.cardinalguild fb3f8b68867fac4ed6f5.js:1:7417\r\n13:48:26.370 Island data loaded fb3f8b68867fac4ed6f5.js:1:5662\r\n13:48:26.392 Loading map boundaries fb3f8b68867fac4ed6f5.js:1:7627\r\n13:48:26.506 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://data.cardinalguild.com/wamap.geojson. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]\r\n13:48:26.506 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://data.cardinalguild.com/wamap.geojson. (Reason: CORS request did not succeed).[Learn More]\r\n13:48:26.509\r\nUnhandled promise rejection Error: \"Network Error\"\r\n\texports https://map.cardinalguild.com/_nuxt/0eabee45f833bff54278.js:2:128036\r\n\tonerror https://map.cardinalguild.com/_nuxt/0eabee45f833bff54278.js:2:127091\r\n0eabee45f833bff54278.js:2:151207\r\n```\r\n\r\nRequest headers on the OPTIONS request that fails:\r\n```\r\nHost: data.cardinalguild.com\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:63.0) Gecko/20100101 Firefox/63.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate, br\r\nAccess-Control-Request-Method: GET\r\nOrigin: https://map.cardinalguild.com\r\nDNT: 1\r\nConnection: keep-alive\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nTE: Trailers\r\n```\r\ncorresponding Response headers:\r\n```\r\nHTTP/2.0 405 Method Not Allowed\r\nserver: Varnish\r\nretry-after: 0\r\ncontent-type: \r\naccept-ranges: bytes\r\ndate: Fri, 30 Nov 2018 12:48:32 GMT\r\nvia: 1.1 varnish\r\nx-served-by: cache-hhn1546-HHN\r\nx-cache: MISS\r\nx-cache-hits: 0\r\nx-timer: S1543582113.528730,VS0,VE0\r\nx-fastly-request-id: 6b06279fb38da796f814ff53647fd4ae5e20488a\r\ncontent-length: 131\r\nX-Firefox-Spdy: h2\r\n```"},"comment":{"url":"https://api.github.com/repos/fearlessjake/wamap/issues/comments/443215589","html_url":"https://github.com/fearlessjake/wamap/issues/7#issuecomment-443215589","issue_url":"https://api.github.com/repos/fearlessjake/wamap/issues/7","id":443215589,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzIxNTU4OQ==","user":{"login":"fearlessjake","id":44677760,"node_id":"MDQ6VXNlcjQ0Njc3NzYw","avatar_url":"https://avatars1.githubusercontent.com/u/44677760?v=4","gravatar_id":"","url":"https://api.github.com/users/fearlessjake","html_url":"https://github.com/fearlessjake","followers_url":"https://api.github.com/users/fearlessjake/followers","following_url":"https://api.github.com/users/fearlessjake/following{/other_user}","gists_url":"https://api.github.com/users/fearlessjake/gists{/gist_id}","starred_url":"https://api.github.com/users/fearlessjake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fearlessjake/subscriptions","organizations_url":"https://api.github.com/users/fearlessjake/orgs","repos_url":"https://api.github.com/users/fearlessjake/repos","events_url":"https://api.github.com/users/fearlessjake/events{/privacy}","received_events_url":"https://api.github.com/users/fearlessjake/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T14:14:44Z","updated_at":"2018-11-30T14:14:44Z","author_association":"OWNER","body":"Yeah we could add http://outdatedbrowser.com/en\r\n\r\nMy focus is now getting the reporting fixed"}}
{"actor":{"display_login":"fearlessjake"}}