Navigation Failed Because The Request Was For An Http Url With Https-only Enabled Fixed Jun 2026

Once the browser sees this header, it will automatically convert all future http:// requests to https:// before they are sent, eliminating the error.

Audit your code for stray http:// references today—your users’ browsers are already doing the same. Once the browser sees this header, it will

If you are a developer seeing this error right now: If the upgrade fails (or if you explicitly

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload setting up a VPN

// Option C: Just use a relative path if on the same origin fetch('/api/data');

HTTPS-Only mode forces the browser to automatically upgrade every request to HTTPS. If the upgrade fails (or if you explicitly hardcode http:// ), the browser throws an error instead of falling back to unsafe HTTP.

If you see this error while opening a link, setting up a VPN, or managing local hardware, use these strategies to restore connectivity: 1. Manually Format the URL Block Unable to login to Local via link in Localwp - Support