laravel 你的连接不是 chrome 中的私人错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47814232/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
laravel Your connection is not private error in chrome
提问by Omneya el-meligy
I am using laravel 5.4 and I updated the .env file to be as follows:
我正在使用 laravel 5.4 并将 .env 文件更新为如下:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=my gmail
MAIL_PASSWORD=my password
MAIL_ENCRYPTION=tls
when I tried to test that I got the following message
当我尝试测试我收到以下消息时
Attackers might be trying to steal your information from test.dev (for example, passwords, messages, or credit cards). Learn more NET::ERR_CERT_AUTHORITY_INVALID
攻击者可能试图从 test.dev 窃取您的信息(例如,密码、消息或信用卡)。了解更多 NET::ERR_CERT_AUTHORITY_INVALID
so I tried to return everything to the default but I still got the same message .. where is the problem?
所以我试图将所有内容恢复为默认值,但我仍然收到相同的消息..问题出在哪里?
回答by Shiro
It is because your chrome version is 63. Now it is a force to use https.
那是因为你的chrome版本是63,现在强制使用https了。
If you using Valet. You may change your domain to other e.g. .test
如果您使用代客。您可以将您的域更改为其他,例如.test
The command is valet domain test
命令是 valet domain test
All your .dev
domain will be replaced to .test
您的所有.dev
域都将被替换为.test
More info:-
更多信息:-
https://laravel-news.com/chrome-63-now-forces-dev-domains-https
https://laravel-news.com/chrome-63-now-forces-dev-domains-https
回答by otmane smiri
change the .devto .testinto the Homestead.yamland C:\Windows\System32\drivers\etc\hosts
将.dev更改为.test到Homestead.yaml和C:\Windows\System32\drivers\etc\hosts
- run the command:
- 运行命令:
vagrant reload --provision
流浪者重新加载 --provision
- use the "incognito window"Ctrl+Shift+Nor use Internet Explorer
- 使用“隐身窗口” Ctrl+Shift+N或使用Internet Explorer
回答by Reiss
Or type: valet secure, for that project and make it secure. Worked for me!
或键入:代客安全,为该项目并使其安全。对我来说有效!
回答by I Am Iron Man
I had the same problem I was using Chrome version 63 and you can just downgrade to version 62 it will be fine or try using ".localhost”, “.invalid”, “.test”, or “.example” instead of ".dev"
我在使用 Chrome 63 版时遇到了同样的问题,您可以降级到 62 版,或者尝试使用“.localhost”、“.invalid”、“.test”或“.example”而不是“.example”。开发”
回答by West Crosby
I received this error with Laravel 5.2 and valet. I ended up upgrading valet from v1.1.22 to v2.0.6, and using "valet secure [domain]" to secure my local dev site with a TLS certificate. I have middleware that redirects all traffic on this site to https.
我在使用 Laravel 5.2 和代客泊车时收到此错误。我最终将 valet 从 v1.1.22 升级到 v2.0.6,并使用“valet secure [domain]”来使用 TLS 证书保护我的本地开发站点。我有中间件,可以将此站点上的所有流量重定向到 https。
Upgrading to v2 was probably not required, however my current installation broke from all the troubleshooting I attempted.
可能不需要升级到 v2,但是我当前的安装破坏了我尝试的所有故障排除。
回答by Dhruv Parmar
Don't use .dev for your local domains - the new chrome (version 63) redirects all .dev -Domains to https
不要将 .dev 用于本地域 - 新的 chrome(版本 63)将所有 .dev -Domains 重定向到 https
Try to rename your local domains to something like lsapp.test an myfirstls.test
尝试将您的本地域重命名为 lsapp.test 和 myfirstls.test