The correct solutions are a) not use .dev, which is an used TLD now and/or b) to sign the certificate with a self-created CA you import into the trust store. Recommending to globally disable a security feature just to keep your broken setup running is bad advice.
Yeah. `.dev` is now an actual TLD; disabling security features without mentioning what they are, how they affect the issue and what is the effect of disabling them looks like a footgun.