friendica / docker

Docker image for Friendica
https://friendi.ca
GNU Affero General Public License v3.0
50 stars 19 forks source link

Lots of CORS errors when using the insecure image #234

Closed oculos closed 11 months ago

oculos commented 11 months ago

Hi,

I got the Docker composer up and running the example ("insecure", fpm), but most of the resources do not load because of CORS errors, as in the image below.

Is there a fix for this?

Screenshot 2023-12-09 at 18 40 39
MrPetovan commented 11 months ago

These aren’t CORS errors, look at the URL path, there’s one localhost too many, which means all these URLs end up loading an HTML 404 Not Found error instead of the Javascript files.

Please check the config/local.config.php for a possible localhost/localhost string.

oculos commented 11 months ago

Hi,

Thanks for the reply.

I saw that, but I just did docker-compose -up and configured the FRIENDICA_URL=localhost on the docker compose file.

Where does this come from?

On Dec 9, 2023, at 20:57, Hypolite Petovan @.***> wrote:

These aren’t CORS errors, look at the URL path, there’s one localhost too many, which means all these URLs end up loading an HTML 404 Not Found error instead of the Javascript files.

Please check the config/local.config.php for a possible localhost/localhost string.

— Reply to this email directly, view it on GitHub https://github.com/friendica/docker/issues/234#issuecomment-1848647619, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT2F47JYWH6ZIXOWJPKNKTYIS7BLAVCNFSM6AAAAABAN57BCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYGY2DONRRHE. You are receiving this because you authored the thread.

oculos commented 11 months ago

It works now after I removed the URL setting.

MrPetovan commented 11 months ago

I believe the FRIENDICA_URL setting must be a fully-qualified URL like https://localhost.