Categories
Mastering Development System & Network

ERR_CERT_COMMON_NAME_INVALID on chrome

When trying to login to my website on Chrome based browsers I get the error: Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID On firefox it works fine, tho. I installed certificates by certbot. My corresponding nginx settings look like: server { listen 80; server_name pvapp.umwelt-campus.de; return 302 https://$server_name$request_uri; } server{ # SSL configuration listen 443 ssl default_server; […]

Categories
Mastering Development

Battling a ‘same policy’ CORS when doing a post request with Express

I have an issue when I want to create a new account on my website. Everything works fine when hosted as localhost but as soon as it’s hosted on AWS, I have the famous Same-Policy CORS issue. To create an account, I have an OPTIONS request and a POST request. The OPTIONS request is empty […]