Replies: 1 comment 6 replies
-
Right now, so far you can use one option, either IP or domain, but no both, this has been asked already before, just to give you a quick answer. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Your Environment
Describe the bug
if i visit verdaccio via ip address,then i got error blow.but npm.xxx.com can be also used as well ,nothing wrong with it.

i hope i can use both npm.xxx.com and ip to visit my npm mirror as well !
ERROR:
GOOD:
CONFIG:

mine images:
mine config.yaml:

mine nginx:

To Reproduce
Expected behavior
Both works well,
if i visit verdaccio via ip address,then i got error blow.but npm.xxx.com can be also used as well ,nothing wrong with it.
i hope i can use both npm.xxx.com and ip to visit my npm mirror as well !
Environment information
Debugging output
Refused to connect to 'http://npm.xxx.com/-/verdaccio/data/packages' because it violates the following Content Security Policy directive: "connect-src 'self'".
(anonymous) @ main.a8b34a3843b7ceb4e197.js:2
main.a8b34a3843b7ceb4e197.js:2 Refused to connect to 'http://npm.xxx.com/-/verdaccio/data/packages' because it violates the document's Content Security Policy.
Contribute to Verdaccio
Beta Was this translation helpful? Give feedback.
All reactions