windows explorer doesn't working
[ms explorer]
[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 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
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