tomas.lukl

Q: Safari freezes when accessing localhost

Hello,

 

this issue just started to occur after upgrade do macSierra and Safari 10. When I try to access an url on locahost using https, safari just freezes for couple of seconds and after that it load the web page correctly. When I try to test the url using curl command, it freezes as well unless I tell it not to verify certificate.

Everything works fine when I try to access the same page via Google Chrome.

 

Anyone has the same issue?

MacBook Pro, macOS Sierra (10.12), null

Posted on Sep 27, 2016 1:50 AM

Close

Q: Safari freezes when accessing localhost

  • All replies
  • Helpful answers

  • by Ella Fitzgerald,

    Ella Fitzgerald Ella Fitzgerald Sep 27, 2016 1:51 AM in response to tomas.lukl
    Level 4 (2,470 points)
    iPhone
    Sep 27, 2016 1:51 AM in response to tomas.lukl
  • by Eric Root,

    Eric Root Eric Root Sep 27, 2016 6:36 AM in response to tomas.lukl
    Level 9 (72,124 points)
    iTunes
    Sep 27, 2016 6:36 AM in response to tomas.lukl

    Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. Then try Safari/History/Show History and delete all history items.  Quit/reopen Safari and test. You can also try try Safari/Clear History…. The down side is it clears all cookies. Doing this may cause some sites to no longer recognize your computer as one that has visited the web site. Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library./Caches/com.apple.Safari/Cache.db and move it to the trash.

     

    Go to Safari Preferences/Extensions and turn all extensions off. Test. If okay, turn the extensions on one by one until you figure out what extension is causing the problem.

     

    Safari Corruption       See post by Linc Davis

  • by tomas.lukl,

    tomas.lukl tomas.lukl Sep 27, 2016 11:28 AM in response to tomas.lukl
    Level 1 (4 points)
    Safari
    Sep 27, 2016 11:28 AM in response to tomas.lukl

    Thank you for your answers. Howere the steps described did not solve my problem. It is related only for the case I try to access a web page on localhost via HTTPS. Safari freezes for a couple of seconds or keeps displaying "Invalid certificate dialog" depending on a server certificate. Sometimes the problem is related only to urls https://localhost and not to https://127.0.0.1.

    It is a bit frustraing since I use these urls realy often for accessing our customers sites (via SSH tunnels). Google Chrome now helps a bit but it is not a solution.