-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
WebpackDevServer + https + Safari mobile = Page reloads constantly #1370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am experiencing the same issue on Safari mobile using the Safari of iOS simulator. |
I am running into the same issue. The log displays this error:
As far as I can tell Safari does not accept the SSL certificate for the web socket connection. I have not found a workaround so far. |
+1 |
1 similar comment
+1 |
It's not at all an ideal solution but I was able to at least stop the constant reloading by setting |
+1 |
For what it's worth--if you don't mind using an SSL certificate that requires a little sysops setup on your part, you can use https://letsencrypt.org/ to get free certificates for your dev environment that are trusted by most systems. If you don't mind using certificates where your private key may or may not be private, try https://zerossl.com/ , an online tool that uses Let's Encrypt as a backend to generate valid certificates for SSL. Once I had a valid SSL Certificate coming out of my Webpack Dev Server, this bug went away on iOS Safari. // ...
devServer: {
inline: true, // Yeah!
https: {
key: fs.readFileSync("< path to your private key >"),
cert: fs.readFileSync("< path to your valid certificate >"),
},
public: '< your domain name for your development environment>',
host: '< an ip address that works for you, maybe 0.0.0.0 >',
port: 443,
// and so on
},
// ... |
I think webpack-dev-server is fine, here is how I made it work:
|
Problem in Ref: https://www.osstatus.com/search/results?platform=all&framework=all&search=-9807 |
I ran into this issue as well, usually when going between different projects that use |
This solution works, but the
More details here: https://github.com/FiloSottile/mkcert#mobile-devices |
This issue was previously reported but the issue marked closed. I'm re-introducing it to hopefully bring it to your attention again. #868
Code
https://github.com/mimshwright/wps-bug
Expected Behavior
When loading a page served by WebpackDevServer with https enabled in Safari, the page should load normally.
Actual Behavior
The page continuously reloads.
It appears the browser reloads as soon as the full content of the HTML is loaded. When I first discovered the bug in a rather substantial code-base, it was reloading every 3 or 4 seconds. However, when I run a barebones demo I see the page refresh several times per second and nothing ever gets drawn to the screen.
How can we reproduce the behavior?
Load a page served by WebpackDevServer with HTTPS enabled over a local network in Mobile Safari.
The text was updated successfully, but these errors were encountered: