From f91e9ce3569b0c970c9e46b3c571cd4bcf8e9c8a Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 10 Jan 2017 10:32:52 +0000 Subject: [PATCH] Allow Mac OS X to load non-SSL secured URLs, closes #11 Signed-off-by: Natalia Portillo --- wrp-cocoa.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wrp-cocoa.py b/wrp-cocoa.py index 20d2c6c..7ad3c76 100755 --- a/wrp-cocoa.py +++ b/wrp-cocoa.py @@ -210,6 +210,7 @@ def main(): app = AppKit.NSApplication.sharedApplication() delegate = AppDelegate.alloc().init() AppKit.NSApp().setDelegate_(delegate) + AppKit.NSBundle.mainBundle().infoDictionary()['NSAppTransportSecurity'] = dict(NSAllowsArbitraryLoads = True) rect = Foundation.NSMakeRect(-16000,-16000,100,100) win = AppKit.NSWindow.alloc() win.initWithContentRect_styleMask_backing_defer_ (rect, AppKit.NSBorderlessWindowMask, 2, 0)