When Using Nuxt Axios Proxy Mode, Axios Config's httpsAgent Injection Cannot Handle Self-Signed Certificates on the Proxy Server

nuxt
2020-01-02 20:53 (5 years ago) ytyng

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.

Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Archive

2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011