Skip to content
Permalink
Browse files
Allows for use of non-https domains under El Capitan
... when --ignore-ssl-check is enabled

Fixes paulhammond#90
  • Loading branch information
bendalton committed Oct 13, 2015
1 parent c0e91de commit 9a96ac8977c386a84edb674ca1518e90452cee88
Showing with 4 additions and 0 deletions.
  1. +4 −0 webkit2png
@@ -419,6 +419,10 @@ Examples:
# Hide the dock icon (needs to run before NSApplication.sharedApplication)
AppKit.NSBundle.mainBundle().infoDictionary()['LSBackgroundOnly'] = '1'

# Handles ATS HTTPS requirement introduced in El Cap
if options.ignore_ssl_check:
AppKit.NSBundle.mainBundle().infoDictionary()['NSAppTransportSecurity'] = dict(NSAllowsArbitraryLoads = True)

app = AppKit.NSApplication.sharedApplication()

# create an app delegate

7 comments on commit 9a96ac8

@alper

This comment has been minimized.

Copy link

@alper alper replied Nov 16, 2015

I tried this out but I can't seem to get it to work.

@mysticaltech

This comment has been minimized.

Copy link

@mysticaltech mysticaltech replied Nov 26, 2015

@alper you gotta use the --ignore-ssl-check for this fix to work, if you found another way without using this switch please let me know.. thanks

@Rasmis

This comment has been minimized.

Copy link

@Rasmis Rasmis replied Feb 4, 2016

This also works on the Homebrewed version on mac. The file to edit is /usr/local/Cellar/webkit2png/0.7/bin/webkit2png, and it can be done in any text editor.

@datafunk

This comment has been minimized.

Copy link

@datafunk datafunk replied Mar 22, 2016

+1 for brew
The manual fix works though, so thanks heaps!

@Avengio

This comment has been minimized.

Copy link

@Avengio Avengio replied Apr 18, 2016

Nice! Thanks for the workaround.

@GrimlocK38

This comment has been minimized.

Copy link

@GrimlocK38 GrimlocK38 replied May 29, 2016

Hi,

after have add this line a little problem.

File "/usr/local/bin/webkit2png", line 423
if options.ignore_ssl_check:
^
IndentationError: unexpected indent

Thanks for help

@helloalvin

This comment has been minimized.

Copy link

@helloalvin helloalvin replied Jun 25, 2019

Handles ATS HTTPS requirement introduced in El Cap

#if options.ignore_ssl_check:

AppKit.NSBundle.mainBundle().infoDictionary()['NSAppTransportSecurity'] = dict(NSAllowsArbitraryLoads = True)

I tried like this,and it works,tks!

Please sign in to comment.