crazy-max / docker-flarum

Flarum Docker image
MIT License
197 stars 31 forks source link

cors issue #41

Closed karimmahrouskamil closed 3 years ago

karimmahrouskamil commented 3 years ago

Behaviour

after launching the docker-compose in examples/compose it gives

Access to font at 'http://127.0.0.1:8000/assets/fonts/fa-solid-900.woff' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

crazy-max commented 3 years ago

@karimmahrouskamil From a CORS standpoint http://127.0.0.1:8000 and http://localhost:8000 are different domains. If you don't really care you can set FLARUM_REFERRER_POLICY=*.