I'm using the HttpRequest.getString method to load some content dynamically, which works well until I generate some js from the dart code. Running the generated javascript causes these error "access denied" at this point:
// An uncaught error in the root context terminates all isolates.
if (identical(this, _globalState.rootContext)) {
rethrow;
}
this is the dart code:
void loadPage(String src)
{
HttpRequest.getString(src).then((response)
{
querySelector("#content").innerHtml=response;
});
}
Where is the problem, and why is the dart code working but not the javascript code?