3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Nuxt.js開発環境でproxyにhttpsを使用してエラーの場合の対処法

Posted at

[HPM] Error occurred while trying to proxy request // from 192.168.1.2:3000 to https://localhost (UNABLE_TO_VERIFY_LEAF_SIGNATURE) (https://nodejs.org/api/errors.html#errors_common_system_errors)

上記のようなエラーが出た場合、nuxt.config.js に "secure": false を追加する。
"proxy": {
"/api": {
"target": "https://localhost",
"pathRewrite": {
"^/api": ""
},
"secure": false
}
},

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?