Https dev server locks mobile Safari in infinite redirect loop
See original GitHub issueDescribe the bug
Using https causes infinite redirecting behaviour in iOS Safari
Reproduction
- Set the server to use https
- Visit the dev site using iOS Safari and one of the network IPs
- Confirm the “Visit unsecure web site”
- Site keeps re-loading rapidly, switching between site URL and certificate warning URL
System Info
vite
version: 2.0.4- Operating System: MacOS 11.2.1, iOS 14.4
- Node version: 14.0.0
- Package manager (npm/yarn/pnpm) and version: Yarn 1.22.5
Logs (Optional if provided reproduction)
- Run
yarn dev
using https
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Safari refresh loop with webpack-dev-server in https mode
So I am using webpack-dev-server with standard HMR configuration (but with https: true ) and the browser keeps refreshing even if I don't ......
Read more >Too many redirects Safari iOS - Apple Community
Anytime I'm using mobile data (AT&T) and try going to ... running the web site have an HTML or JavaScript redirect bug (an...
Read more >Too many redirect on login page after move the site from http ...
I run gitlab-ce 8.16.3, installed as omnibus package on ubuntu server 14.04. The server run behind a firewall in our private network, ...
Read more >How to Fix “Too Many Redirects” WordPress Error - DreamHost
The “too many redirects” WordPress error can occur when your site gets stuck in a redirection loop due to an issue with your...
Read more >How to Fix Error Too Many Redirects Issue in WordPress
However, this error doesn't tell you what's causing the conflict and forcing the redirect loop in WordPress. This is how the error looks...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a workaround (Mac specific instructions):
$ mkcert localhost <your local IP, i.e. 192.168.1.51>
.pem
s:mkcert
’srootCA.pem
file by running the following command:$ mkcert -CAROOT
rootCA.pem
file to your iDevicemkcert
root certificateYou should now be able to view your local app by entering your local IP in safari, i.e.
https://192.168.1.51:4000
I confirmed this still happens. I tested with 2.0.4 and 2.3.0 and 2.9.9 and 3.0.0-alpha.7.