0]LogFileServer: Display: Unreal Network File Server is ready for client connections on 0.0.0.0:41899!
but i got browser error
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:41898/. (Reason: CORS request did not succeed). Status code: (null).
Easiest is probably to spin up a copy of nginx in front of Unreal, on some other port, and have nginx add the appropriate CORS header, and forward Unreal requests to the Unreal back-end. The other benefit of that is that nginx can also serve whatever other web assets you have (or front Node or Warp or Tomcat or whatever youβre using) on the same domain, using path routing.
@ jwatte Thanks for response but i try it with simple web hosting. it is not same situation for packaged data and data from \Binaries\HTML5 .
Luancher have return information [debugger] . It miss debug map file (browser console).
Ok i not use any cors bonus operation i just use HTML5LaunchHelper.exe from \Binaries\HTML5 folder .
I simple started on localhost:8000 by default but i got error:
ShooterGame.UE4.js:115 Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.
Module.printErr @ ShooterGame.UE4.js:115
warnOnce @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:305
_emscripten_get_callstack_js @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:9759
_emscripten_log_js @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:10334
_emscripten_log @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:10361
$__ZN11FEngineLoop4InitEv @ 17a8c02a:0xe6fda
$__Z10HTML5_Initv @ 17a8c02a:0xe6a5e
$_main @ 17a8c02a:0xe79c8
Module._main @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:14459
callMain @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16394
doRun @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16431
run @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16443
runCaller @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16377
removeRunDependency @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:995
(anonymous) @ ShooterGame.UE4.js:1199
ea503a42-921b-4dcf-baca-7d0be1cd15b0:10338 Debug breakpoint!
at FEngineLoop::Init() (17a8c02a:wasm-function[514]:0xe6fda)
at HTML5_Init() (17a8c02a:wasm-function[512]:0xe6a5e)
at _main (17a8c02a:wasm-function[515]:0xe79c8)
at Module._main (ea503a42-921b-4dcf-baca-7d0be1cd15b0:14459:32)
at callMain (ea503a42-921b-4dcf-baca-7d0be1cd15b0:16394:13)
at doRun (ea503a42-921b-4dcf-baca-7d0be1cd15b0:16431:21)
_emscripten_log_js @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:10338
_emscripten_log @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:10361
$__ZN11FEngineLoop4InitEv @ 17a8c02a:0xe6fda
$__Z10HTML5_Initv @ 17a8c02a:0xe6a5e
$_main @ 17a8c02a:0xe79c8
Module._main @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:14459
callMain @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16394
doRun @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16431
run @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16443
runCaller @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:16377
removeRunDependency @ ea503a42-921b-4dcf-baca-7d0be1cd15b0:995
(anonymous) @ ShooterGame.UE4.js:1199
ShooterGame.UE4.js:115 exception thrown: Error
at Array.ASM_CONSTS (blob:http://localhost:8000/ea503a42-921b-4dcf-baca-7d0be1cd15b0:1130:18)
It is not cors in this variant ! Cook in fly probably not works in case of simple hosting only with luacher β¦
Its not big problem, full package is very big proccess on my computer , i just wanna use luanch options with cook in fly to make fast check status of app.
I also try with firefox cors exstrensions but dont have luck for now!