Skip to content

Commit

Permalink
Allow non-https pages in El Capitan and later
Browse files Browse the repository at this point in the history
Fixes #90, #91, #99, #100 and #107

Thank you to everyone who reported it, and to Ben Dalton and Mathijs
Bernson for providing fixes. Sorry it took so long to land this fix.
  • Loading branch information
paulhammond committed Mar 25, 2020
1 parent c0e91de commit 3fa091e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webkit2png
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ Examples:
# Hide the dock icon (needs to run before NSApplication.sharedApplication)
AppKit.NSBundle.mainBundle().infoDictionary()['LSBackgroundOnly'] = '1'

# Allow loading HTTP pages
AppKit.NSBundle.mainBundle().infoDictionary()['NSAppTransportSecurity'] = dict(NSAllowsArbitraryLoads = True)

app = AppKit.NSApplication.sharedApplication()

# create an app delegate
Expand Down

0 comments on commit 3fa091e

Please sign in to comment.