fusio icon indicating copy to clipboard operation
fusio copied to clipboard

Fresh install with docker, json file problem

Open Zerdec62 opened this issue 3 years ago • 2 comments

Hello,

I have a little problem from my fresh install.

I run a docker compose basic setup from this official file with just add a mount point from a NAS in my network with NFS.

My setup work perfectly with the default setting but when I use one of my json file, I get a error message for example from https://www.test-cors.org/ or https://hoppscotch.io/, and also with a app a friend build, when he use a json file on local no problem but in my setup he get a error from CORS, a Access-Control-Allow-Origin problem.

Can you help me please ? (I don't know if I send here my link for the API website or not, if you need it I can do it)

Zerdec62 avatar Jun 16 '22 21:06 Zerdec62

Hi, sure, so could you show me the error message what exactly the problem is of the CORS request? In general Fusio should handle the prefligh request with a 200 response and allow also requests from other domains.

chriskapp avatar Jun 20 '22 19:06 chriskapp

Hello, sorry for my reponse time !

So my friend send me this error message :

Access to fetch at 'https://dbd-api.herokuapp.com/killers' from origin 'http://127.0.0.1:5500/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

This message come with that API website and with mine (https://api.akvd.fr/dbd/killers) that doesn't work too.

He have his web app on his local computer, and we test with defaulf API (https://api.akvd.fr/) and a other api on the web (for exemple the Nasa API), all is good so is not a problem with his app hosted on his computer.

Zerdec62 avatar Jul 03 '22 21:07 Zerdec62