ERR_TLS_CERT_ALTNAME_INVALID #557
Replies: 8 comments 3 replies
-
When ever I add |
Beta Was this translation helpful? Give feedback.
-
@coderpradp Did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
-
Getting same error when proxying request to a ssl based server |
Beta Was this translation helpful? Give feedback.
-
Had same issue. const apiProxy = proxy('/api', {
target: API_ENDPOINT,
changeOrigin: true,
pathRewrite: { '^/api': '' }, // remove leading /api to match real API urls
}) |
Beta Was this translation helpful? Give feedback.
-
What location is this file found at? |
Beta Was this translation helpful? Give feedback.
-
I have already set |
Beta Was this translation helpful? Give feedback.
-
it seems to be enough to set |
Beta Was this translation helpful? Give feedback.
-
A test https server I was trying to proxy to was using a self signed certificate, I found that by striping all the request headers seemed to allow it to successfully connect and return a response. I changed the function relayRequestHeaders(proxyReq, req) {
Object.keys(req.headers).forEach(function (key) {
// strip all the request headers, as the receiving server is freaking out on one of them
proxyReq.setHeader(key, '');
});
} |
Beta Was this translation helpful? Give feedback.
-
Expected behavior
I'm supposed to get the request via proxy
Actual behavior
I'm getting ALTNAME error
Setup
proxy middleware configuration
server mounting
Beta Was this translation helpful? Give feedback.
All reactions