Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webpack devserver proxy to https giving "Error occurred while trying to proxy request" and SELF_SIGNED_CERT_IN_CHAIN

Tags:

webpack

Seeing Following error when trying to setup a proxy from localhost to https site

[HPM] Error occurred while trying to proxy request /api/analytics/getDataByPage from localhost:8080 to https://example.com:19502 (SELF_SIGNED_CERT_IN_CHAIN) (https://nodejs.org/api/errors.html#errors_common_system_errors)
like image 236
Anand Rockzz Avatar asked Apr 18 '26 17:04

Anand Rockzz


1 Answers

Had the same error message. For me it worked by changing "localhost" to "127.0.0.1".

"/api": {
    "target": "http://127.0.0.1:3456/",
    "secure": false
}
like image 147
domih Avatar answered Apr 23 '26 06:04

domih