bkeiren / AwesomiumUnity

Third-party Awesomium wrapper for Unity3D, wrapping Awesomium's C++ API with a custom C# API and accompanying Unity MonoBehaviour components.
108 stars 74 forks source link

Cross Domain / Loading from file:// #13

Open LarsIslander opened 8 years ago

LarsIslander commented 8 years ago

Hi,

I'm using Angular.js to manage my game UI, but have not been able to work out how to enable cross-domain XMLHTTP requests for loading in view templates.

I have set WebSecurity = false in my websession settings, which from the code comments looked like it would allow file:// access, but I still get cross domain requests blocked.

Awesomium win-forms has a FileAccessFromFileURL property that can be set to allow this.

Is there something that I need to do in the cpp project and re-compile?

Thanks, Lars