Skip to content

Commit 9a96ac8

Browse files
committed
Allows for use of non-https domains under El Capitan
... when --ignore-ssl-check is enabled Fixes paulhammond#90
1 parent c0e91de commit 9a96ac8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webkit2png

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ Examples:
419419
# Hide the dock icon (needs to run before NSApplication.sharedApplication)
420420
AppKit.NSBundle.mainBundle().infoDictionary()['LSBackgroundOnly'] = '1'
421421

422+
# Handles ATS HTTPS requirement introduced in El Cap
423+
if options.ignore_ssl_check:
424+
AppKit.NSBundle.mainBundle().infoDictionary()['NSAppTransportSecurity'] = dict(NSAllowsArbitraryLoads = True)
425+
422426
app = AppKit.NSApplication.sharedApplication()
423427

424428
# create an app delegate

0 commit comments

Comments
 (0)