enabled cors support and configured published code to use localhost instead of public URL for faster loading/serving on intranet.