-
tommanI'm getting some CORS errors with Archive's emulatros
-
tommanfor example this: archive.org/details/hypercard_neuroblast-hypercard-diskzine
-
tommanit will load but won't run because of some blocked cross-origin requests for some WASM crap
-
tommanthe error is in Spanish: Pedido de origen cruzado bloqueado: La política de mismo origen no permite ler el recurso remoto en ia801902.us.archive.org/cors_get.ph…emularity_engine_v1/minivmacII.wasm. (Razón: encabezado CORS 'Access-Control-Allow-Origin' no coincide con 'archive.org').
-
tommanbut basically it tells that the cross-origin request got blocked because the same-origin policy won't allow for that because the CORS header Access-Control-Allow-Origin doesn't match
-
njsgtomman: (is that the one jwz got in a floppy?)
-
tommanyep, indeed~
-
tommanand they say he's hard to please! :D
-
frg_AwayAnything wasm is work in progress at best and crap anyway. One of my favorite web features which should go away.
-
» frg_Away is living in the last century sometimes
-
tommanthe problem here doesn't seem to be WASM, but CORS
-
njsgtomman: so these requests are via fetch(), which makes me wonder if anything else changed in the fetch "living standard"
-
njsgwouldn't be the first time they change defaults in a backwards-incompatible way and cause issues
-
njsg... but access-control-allow-origin is * for the initial request that gets 302, and is set in the following request to [string].us.archive.org
-
frg_Awaytomman it is launched via archive org and then chokes because archive.org is not blabla.us.archive.org. I think the error is correct. Nothing you can do other than to load it localy or via static url.
-
tommanso it's working as per spec then
-
njsgor maybe it's the Origin header, hm, there are a couple bugs like bug 1649888
-
njsgokay, that's too many bug numbers for me to process without sleep or caffeine :-) bugzilla.mozilla.org/1694679#c1
-
tommanso no magic "disable all this security theater crap" pref?
-
tommanFWIW I do remember having used that Mini vMac emulator on the Archive on SeaMonkey a couple years ago or so
-
njsgit's archive.org, so it's possible it has been redesigned a few times meanwhile to use more javascript
-
njsgfrg_Away: ok, maybe I need to sleep, but if I'm reading the devtools network information correctly, it says it does not match, but it does match
-
njsgas in, it says it doesn't match archive.org, but the value of the header is archive.org
-
frg_AwayMIght be the referrer ?
-
frg_AwayOr owner?
-
frg_Awayanyway nighty night :)
-
tomman"oh hai it's me, but it's not me!"
-
tommanit's Schrodinger's Header™
-
njsg
-
» njsg needs to get some sleep