No errors in firefox 30 but I cannot see the layer No errors and I can actually see the layer I put it inside the router.get of the index.js. I put the code before the app.use(express.static(path.join(_dirname, 'public'))). I tried a lot of variations I found online. Origin ' is therefore not allowed access. Image from origin ' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Router.get('/', function(req, res, next) , The index.js contains var express = require('express') There is only one route (for the index page) var routes = require('./routes/index') Node.js is the web server, includes openlayers 3.9.0. ![]() I have node.js server 0.10.12 and express.js 4.8.5.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |