I've already deployed a website using https. Then I set up a python server api with flask and secure it with .crt and .key follow by a tutorial. Hence, I had https://a.xyz
website for frontend and https://45.119.x.y:5000
for backend api
if __name__ == "__main__":
context = ('server.crt', 'server.key')
app.run(host='0.0.0.0', ssl_context=context)
I send http request from website front-end to backend and it returns POST https://45.119.x.y:5000/post net::ERR_CERT_AUTHORITY_INVALID
.
Can I make my browser know my server backend? Thank you!