When Using Nuxt Axios Proxy Mode, Axios Config's httpsAgent Injection Cannot Handle Self-Signed Certificates on the Proxy Server
2020-01-02 11:53 (6 years ago)

As of January 2, 2020
When using the proxy mode of axios with nuxt, an error occurred during connection because the target server was using a self-signed SSL certificate.
UNABLE_TO_VERIFY_LEAF_SIGNATURE
Referencing this:
https://teratail.com/questions/210638
I created and introduced a plugin to ignore the certificate error of axios, but it didn't change anything.
Looking at the axios issue, it seems to be an unresolved issue.
https://github.com/axios/axios/issues/1981
So, I decided to properly sign the certificate instead.
Related posts
Fix: Python 3.13 SSL error 'Basic Constraints of CA cert not marked critical' (VERIFY_X509_STRICT)
How to Set Up API Proxy to Other Services in Nuxt3
How to Communicate with a Server Using a Self-Signed Certificate (My Own CA) Without Errors in Flutter's HTTP Client
If "Environment key 'es2021' is unknown" Occurs in Nuxt+Typescript
Please rate this article (No signup or login required)
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.