Laravel project installed with laragon is forcing https in google chrome - php

I have a laravel project which is installed with laragon and I was working for few days nicely. Now after a sudden stop of my pc (because of electricity unavailability) I can no longer access the local site in chrome and it is forcing me to an https location. I then opened the site in mozila and it's working there perfectly.
Here what chrome shows as error
This site can’t provide a secure connection
school.dev sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
What could be the reason and the solution for it?
Thanks in advance.

It has nothing to do with Laravel and everything to do with Chrome. They recently put a release that forces .dev, .app, and a few other TLDs to use HTTPS. The best fix is to use .local instead of another TLD.
src: Chromium transport_security_state_static.json changelog

I face similar issue yesterday, it took me lots of time to actually understand this issue but not to waste much of time, i decided to switch to other browser like Mozilla Firefox and use http instead of https to continue my work.

Related

Php live server not working on multiple browsers

I have a dev site that I started up using the php live server and using localhost:8000. The issue I'm having is that neither Chrome, Firefox, or Safari are able to establish a secure connection because the protocol gets reverted to HTTPS, thus rendering my site useless. I'm fully aware of the new implementations that chrome and other browsers are placing on .dev sites, but I don't think that applies to my issue, especially since the dev site doesn't use that domain. Also, I've been to chrome://net-internals/#hsts and tried deleting any security constraints on localhost, but that didn't work either. What am I missing here?
I think this post can help you: Google Chrome .dev not work over http.
So in according to this post you must only change your .dev local domain following this memorandum from Network Working Group(NWG).

Cakephp and iOS 10.3.2

Since the new iOS update (10.3.2), we can't reach our website from an Apple device. Safari, Chrome or Firefox are returning a blank page or an error page saying there's a network problem.
We've tried from different places, different kind of iphones, on wifi or cell connection (3G,4G)
On mine it was working well, so I updated it to the 10.3.2 version, and I'm having the same error.
I tried contacting my web host but they told me they couldn't do anything. I tried to install Cakephp in a subdirectory, but even with a fresh install and an empty cakephp (2.9.8), it doesn't work.
I tried the same thing with a Cakephp 3 installation, and it works.
I tried installing Cakephp 2.9.8 on another web hosting (a personal one from the same web host) and .. it works.
So I'm getting a little confused as it seems to be an issue with :
iOS 10.3.2
Cakephp 2.9.2 to 2.9.8
my web hosting
Does anybody can give me any direction to look up ? I'm starting to be really depressed here ...
I found a temporary solution by changing my web hosting configuration.
My web host (OVH, French host) allows to use PHP-FPM (which is a PHP FastCGI implementation) to enhance the website performance.
When I disabled it yesterday, my website was available for iOS 10.3.2 users ! I don't know why, but for now I'm relieved.
I've just asked OVH if they have any idea why, but I'm not really optimistic about their reply ...

Website is not loading in chrome and firefox

My magento website is not loading in chrome and firefox.It works fine in IE only. I cleared the chrome cache and history but it not display my website it shows like "This webpage is not available ERR_SSL_VERSION_OR_CIPHER_MISMATCH ". How to solve this error i am working on this issue for last 2 days.
That's nothing to do with your website as such, that's a server configuration issue.
Most likely your server is still trying to serve https requests using SSL3, which has been removed in Chrome 40 (and I guess firefox as well, but I don't have the changelogs to hand to check)
This is a good tool to check your SSL settings:
https://www.ssllabs.com/ssltest/
This will confirm any issues, and advise on fixes.
If you don't have full server access, then you'll need to speak to your host.

Cakephp Authentication not working in Internet Explorer 8 and Chrome

I followed the tutorial for setting up simple authentication (http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html) and I am having issues with Internet Explorer 8 and Chrome. Whenever I try to login, it just keeps redirecting me to the login page. This only works in Firefox. Could this be a cookies issue? I am not sure how to troubleshoot this.
Edit:
I realized this only works in Firefox. I have added a line in the core.php file under the Config folder to disable the checkAgent and it still does not work.
I can't be sure that this is the same problem, but it may be useful in the future... have you checked the date on your host machine?
When a cookie has a bad date from an de-synchronized host machine (which happens frequently in my virtual machine environment), Chrome correctly rejects it, which causes the PHP session variables to be lost. Firefox is more lenient.
It's a simple fix, and it's caught me out more than once in the past!
App Controller sample:
https://github.com/hugodias/cakeStrap/blob/master/app/Controller/AppController.php
Users controller sample:
https://github.com/hugodias/cakeStrap/blob/master/app/Controller/UsersController.php
Users model sample:
https://github.com/hugodias/cakeStrap/blob/master/app/Model/User.php
Login form sample:
https://github.com/hugodias/cakeStrap/blob/master/app/View/Elements/form_login.ctp
Working in all browsers
After further investigation, it was an environmental issue. I was running my webserver/mysql database in an Ubuntu 11.04 virtual machine. I noticed very odd issues occurring. When I created a new virtual machine and loaded my project files, everything was functioning correctly. That was very bizarre.

Bizarre timeout in Web CMS, ideas?

I know this kind of thing cannot be adequately answered without a link to the live example. Unfortunately, I can't set one up right now as it's a back-end login and creating a safe public login would be too much to do at this point. Sorry. I'm hoping for ideas and input from people who may have experienced something similar in the past.
I am setting up a CMS for a client with a DSL connection in Spain.
The CMS is hosted on a straightforward standard, LAMP based, shared hosting package in a network center in Germany.
It comes with a .com domain.
When my client tries to log in to the CMS using Internet Explorer 7, everything works fine.
When she tries to log in using Firefox, she gets to the login form, submits it - and then the connection times out.
When she logs in using Firefox but using "domain.com" instead of "www.domain.com", everything works fine.
This happens on all computers that are hooked up to that line. One Windows XP, one Windows Vista.
The front-end part of the site, as well as a second, older CMS, work fine in all browsers.
I do not have access to the raw access logs.
I have not been able to reproduce this behaviour on any other connection.
Debugging ideas are welcome. Remote diagnosis is extremely difficult as the line is too slow to set up a proper remote connection.
If you are limited by how you can troubleshoot this, have the client install Fiddler - Web debugging proxy and then run the trace, and send you the logs, Fiddler will analyze the traffic (be it proxy or DNS timeout, etc)
Take a look if you have not used it before:
http://www.fiddler2.com/Fiddler2/version.asp
Check that Firefox and IE are using the same proxy settings.
DNS issues? can you put here your A records to check is everything is ok?

Categories