Make your JavaScript-HTML5 StencylWork playable (batch)

 Introduction
Your HTML5-JavaScriopt StencylWork caoont be tested offline outside Stencyl due to CORS Policy

The batch file
Batch file contents. In this case with Microsoft Edge
@ECHO OFF 
title StemcylWork Launcher for HTML5-JS format
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --user-data-dir=C:\msedge-dev-data\ --disable-web-security "%~dp0index.html"
pause

Some details about this batch file
either or both @ECHO OFF and @echo on will work 

The command
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --user-data-dir=C:\msedge-dev-data\ --disable-web-security "%~dp0index.html"
must be in one line otherwise the file will not work 



No comments:

Post a Comment