Is there a way to avoid " Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: " for socket usage on a local machine in the .swf target ? I read some but it turns out I can’t remember what worked last time I had this problem.
Am using the haxe-ws lib. Sending from a cpp target to the said localhost flash running in a debug flashplayer. Should I get a server running instead and run it in a browser, am running out of ideas but do remember was possible to do some other way.
Edit for the detailed error under “debug” compile:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///D|/Work/HxProjects/fcp%5Fscoreboard/bin/flash/debug/bin/fcpscoreboard.swf cannot load data from 127.0.0.1:18000.
at haxe.net.impl::SocketFlash()[C:\HaxeToolkit\haxe\lib\haxe-ws\0,1,0\src\haxe\net\impl\SocketFlash.hx:22]
at MethodInfo-513()[C:\HaxeToolkit\haxe\lib\haxe-ws\0,1,0\src\haxe\net\Socket2.hx:40]
at haxe.net.impl::WebSocketGeneric()[C:\HaxeToolkit\haxe\lib\haxe-ws\0,1,0\src\haxe\net\impl\WebSocketGeneric.hx:39]
at MethodInfo-527()[C:\HaxeToolkit\haxe\lib\haxe-ws\0,1,0\src\haxe\net\WebSocket.hx:18]
at f.c.p::Hermes$/Client()[D:\Work\HxProjects\fcp_scoreboard\src\f\c\p\Hermes.hx:22]
at f.c.p::Main()[D:\Work\HxProjects\fcp_scoreboard\src\f\c\p\Main.hx:97]
at DocumentClass()[D:\Work\HxProjects\fcp_scoreboard\bin\flash\debug\haxe\ApplicationMain.hx:279]
at Type$/createInstance()[C:\HaxeToolkit\haxe\std\flash_std\Type.hx:133]
at ApplicationMain$/start()[D:\Work\HxProjects\fcp_scoreboard\bin\flash\debug\haxe\ApplicationMain.hx:213]
at ApplicationMain$/init()[D:\Work\HxProjects\fcp_scoreboard\bin\flash\debug\haxe\ApplicationMain.hx:127]
at lime.app::Event_Void_Void/dispatch()[C:\HaxeToolkit\haxe\lib\lime\3,0,3\lime\app\Event.hx:145]
at lime.app::Preloader/start()[C:\HaxeToolkit\haxe\lib\lime\3,0,3\lime\app\Preloader.hx:242]
at openfl.display::Preloader/display_onComplete()[C:\HaxeToolkit\haxe\lib\openfl\4,0,2\openfl\display\Preloader.hx:129]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at NMEPreloader/onLoaded()[D:\Work\HxProjects\fcp_scoreboard\bin\flash\debug\haxe\NMEPreloader.hx:107]
at openfl.display::Preloader/start()[C:\HaxeToolkit\haxe\lib\openfl\4,0,2\openfl\display\Preloader.hx:93]
at lime.app::Preloader/current_onEnter()[C:\HaxeToolkit\haxe\lib\lime\3,0,3\lime\app\Preloader.hx:310]
Edit 2 for the detailed error in “release” compile:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///D|/Work/HxProjects/fcp%5Fscoreboard/bin/flash/release/bin/fcpscoreboard.swf cannot load data from 127.0.0.1:18000.
at haxe.net.impl::SocketFlash()
at MethodInfo-513()
at haxe.net.impl::WebSocketGeneric()
at MethodInfo-527()
at f.c.p::Hermes$/Client()
at f.c.p::Main()
at DocumentClass()
at Type$/createInstance()
at ApplicationMain$/start()
at ApplicationMain$/init()
at lime.app::Event_Void_Void/dispatch()
at lime.app::Preloader/start()
at openfl.display::Preloader/display_onComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at NMEPreloader/onLoaded()
at openfl.display::Preloader/start()
at lime.app::Preloader/current_onEnter()