cozy / cozy-debian

Cozy Debian package
13 stars 4 forks source link

Setting CORS headers in Nginx config #47

Closed Phyks closed 7 years ago

Phyks commented 7 years ago

Hi,

It seems no CORS header is set in the Nginx config. Then, when one installs the remoteStorage app and tries to use [Laverna](), they get

Blocage d’une requête multi-origines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://COZY_URL/.well-known/host-meta.json?resource=acct:me@COZY_URL. Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant.

I think this file should be updated as well. This doc should be updated as well.

Thanks!

Phyks commented 7 years ago

Error was on my side, sorry for the noise :/