'How to change to use http in Azure Static Web App
By default, when the web app is deployed in Azure Static Web App, it will automatically use https. However, the back-end API must use https (web socket must use wss) as well.
I used the self-signed cert to expose the back-end API to let the front-end consume. However, the browser deny with message "TLS handshake error from xx.xx.xx.xx: remote error: tls: unknown certificate"
Must I purchase the CA signed certificate? This is my personal project. And I do not want to spend money to buy a CA signed cert. Is there other way to resolve the problem, such as downgrade the https used in Azure Static Web App to http?
Solution 1:[1]
If you have a self-signed SSL/TLS certificate put on your website directly and it is active on the internet, an issue will occur.
We can't bind our own certificates in a static web app like we can with a Basic App Service.
To bind your own certificate
- First you need to set up Azure Front Door
- Then you need to configure SSL with your own certificate
Please refer TLS/SSL Handshake Failures for more information
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | HarshithaVeeramalla-MT |
