Allow Mac OS X to load non-SSL secured URLs, closes #11

Signed-off-by: Natalia Portillo <claunia@claunia.com>
This commit is contained in:
Natalia Portillo 2017-01-10 10:32:52 +00:00
parent e209d42e30
commit f91e9ce356
No known key found for this signature in database
GPG Key ID: 51D20488C724CA9F
1 changed files with 1 additions and 0 deletions

View File

@ -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)