I’ve recently been using Visual Studio to build my SAS Web Apps, which is great as the intellisense will even scan css files to help with code completion. Perhaps the best feature though is the ability to right click and immediately ‘view in browser’ - which spins up a local web server and avoids the need to constantly modify files on the main dev SAS web server.
However - there are a few things to remember when using this feature to actually connect to SAS.
XMLHttpRequest cannot load https://SASMIDTIER:8080/SASStoredProcess/do. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ’http://localhost:54048’ is therefore not allowed access.To avoid this (using chrome) simply launch from the command line with that feature disabled - as follows:
“C:Program Files (x86)GoogleChromeApplicationchrome.exe” —user-data-dir=“C:/Chrome dev session” —disable-web-security
HTML file location