Closed zhangaz1 closed 3 years ago
Added this question to the FAQ. I am closing the issue, but please feel free to continue the discussion if you'd like to.
Notice that you may have run into CORS issues when trying to fetch resources from http://127.0.0.1:5743
. Configure your HTTP scripts server to set the proper CORS headers.
If using the recommended Web Server Chrome app, open its settings, click "Show Advanced Options" and then check the "Set CORS headers" option:
That's a very nice question.
There is currently no way of directly including resource types other than JS and CSS. However, you could try one of these tricks:
http://127.0.0.1:5743/foo.png
). You can then reference this address in your JS or CSS to load your image directly.I'd go with the last option, which seems to be the easiest. Please let me know if you were able to do it.