You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/07/07 06:27:18 UTC
[GitHub] [couchdb-fauxton] iamgollum opened a new issue #1202: Content
Security Policy violation errors following local development setup when
attempting to start dev
iamgollum opened a new issue #1202: Content Security Policy violation errors following local development setup when attempting to start dev
URL: https://github.com/apache/couchdb-fauxton/issues/1202
I have been following the guide(s) - `readme.md` and link to online guide on contributing - and when I execute `npm run dev` with couchdb up and running in docker and the `settings.json` in effect I get:
```
Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
```
`default-src 'self'` should work for same-origin when applying host: `"http://localhost:5984"`
I was playing around with https://csp-evaluator.withgoogle.com/ using the `defaultHeaderValue` in `devserver.js` but to no avail.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services