[Spanish] Openlayers geojson desde github

Javier Diaz javidiaz1977 at gmail.com
Wed Oct 11 10:21:42 PDT 2017


En Firefox:

Pedido de origen cruzado bloqueado: La política de mismo origen no permite
leer el recurso remoto en
https://raw.githubusercontent.com/transporte17/repo01/master/ingenios.geojson.
(Razón: CORS preflight channel did not succeed).

Lo raro es que con la misma configuración, lo único que cambio es 2.13.1
por 2.11 y ahí si funciona. Con la versión 3 de openLayers también funciona.


La consola de Chrome me da algunas pistas mas:

XMLHttpRequest.js:220 OPTIONS
https://raw.githubusercontent.com/transporte17/repo01/master/ingenios.geojson
400 (Bad Request)
fXMLHttpRequest_send @ XMLHttpRequest.js:220
cXMLHttpRequest.send @ XMLHttpRequest.js:262
(anonymous) @ Request.js:240
setTimeout (async)
issue @ Request.js:238
GET @ Request.js:319
llamar_editor @ grid_crurales_17_1_7.js:198
init @ panel_crurales_17_1_7.js:2194
(anonymous) @ ext-all-debug.js:190
call @ ext-all-debug.js:1547
setInterval (async)
me.delay @ ext-all-debug.js:1563
(anonymous) @ ext-all-debug.js:188
fire @ ext-all-debug.js:310
fireDocReady @ ext-all-debug.js:5091

caminos_rurales_17_1_7.php:1 Failed to load
https://raw.githubusercontent.com/transporte17/repo01/master/ingenios.geojson:
Response for preflight has invalid HTTP status code 400


VM6008:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at C.read (JSON.js:97)
    at handler (grid_crurales_17_1_7.js:192)
    at Object.runCallbacks (Request.js:287)
    at fXMLHttpRequest.request.onreadystatechange (Request.js:225)
    at fXMLHttpRequest.cXMLHttpRequest.dispatchEvent (XMLHttpRequest.js:333)
    at fReadyStateChange (XMLHttpRequest.js:357)
    at XMLHttpRequest._object.onreadystatechange (XMLHttpRequest.js:214)

2017-10-11 13:04 GMT-03:00 martinmaximilianoflores <
martinmaximilianoflores en yahoo.com.ar>:

> Y que error te da?
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/OSGeo-Spanish-
> Local-Chapter-f3736386.html
> _______________________________________________
> Spanish mailing list
> https://lists.osgeo.org/mailman/listinfo/spanish
> http://es.osgeo.org
> http://twitter.com/osgeoes
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.osgeo.org/pipermail/spanish/attachments/20171011/094cb0a7/attachment.html>


More information about the Spanish mailing list