Ok I have tryied to go to the link mentionned in the post but it hosted in Gitbook and password protected : https://app.gitbook.com/login/forestadmin/how-to-s?location=%2Fgeneral%2Fconfiguring-the-cors-headers
I have tried to access it through my usual forest admin credential, and also my personnal github account but without success
I have also been checking in the main Forest Admin documentation and there is no info :
Could you send me the page or the credential needed?
After searching the web, I have tried to add :
http://app.forestadmin.com/ and https://app.forestadmin.com/ in the .env CORS_ORIGINS variable.
I also used console.log to check that the variable “allowedOrigins” was used well and was integrating the .env modification. Everything seems good :
BUT still not working.
Another info :
If I use Firefox, I got the error mentionned above.
But If I use Chrome, i got the following error:
“Failed to load resource: net::ERR_CONNECTION_REFUSED”
Small question :
1 - Is it normal that the URL mentionned in the CORS error is “localhost” based ?
The same url is mentionned in the orange popup in the right bottom corner when i try to log in, saying:
Your admin backend is unreachable. Please check that it is running and respond to http://localhost:3310.
My point :
Is there some configuration issue from your side regarding the IP used for my Bocoloco project ?
Shouldn’t it be based on the IP address of my Bocoloco server like http://XX.XX.XX.XX:3310 ?
2 - I can connect to port 3310 of the server IP using my personal browser, and I get a webpage saying “Application is running”.
Shoudn’t it mean that the CORS is enabled ?
I have tried to delete Bocoloco project and create a new one with the same parameters,
Same issue is happening : “Waiting for your backend to run” at the end of the installation process.
When I check the dev console, I got the same error repeating :
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:3310/forest. (Reason: CORS request did not succeed)
even though the application is up and running when I check the IP address of my server on port 3310.
It’s still strange that the IP address used is again localhost based.