mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

windows explorer doesn't working

Open jhjhjh96 opened this issue 9 years ago • 2 comments

232 [ms explorer]

44343 [chrome]

**chrome, edge are working. but explorer 11 isn't.

My OS is win10 64bit. and my html is same source (https://www.mapbox.com/mapbox-gl-js/examples/)**

[node.js local server] // eslint-disable-next-line strict const fs = require('fs'); const express = require('express'); const app = express(); const port = 3000;

app.use('/dist', express.static(${__dirname}/dist)); app.use('/public', express.static(${__dirname}/public));

app.get('/', (req, res) => { fs.readFile(${__dirname}/dist/map.html, (error, data) => { res.writeHead(200, {'Content-Type': 'text/html'}); if (error) { console.error(error); } res.end(data); }); });

app.listen(port); console.log(Listening on port 3000);

what is problem in my project?

jhjhjh96 avatar Aug 17 '17 05:08 jhjhjh96

@jhjhjh96 thanks for reporting this issue. Couple questions:

  • Does it always fail to load? (Could you reloading the page a few times?)
  • If you open https://www.mapbox.com/mapbox-gl-js/examples/ directly, do you see the same problem?

Possibly a duplicate of #3040

anandthakker avatar Aug 17 '17 13:08 anandthakker

Yes, it always fail. I think this problem is CORS. I found request origin was 'blob://'. after add cors header, I will ask again. thank you

jhjhjh96 avatar Aug 18 '17 00:08 jhjhjh96