I understand that you can debug, but the real problem is that you are not getting the expected data from the server due to the lack of cookies.
Standard CORS requests do not send or set cookies by default.
To enable cookies as part of the request, in addition to configuring the server, you need to specify the withCredentials property, for example:
HttpRequest.getString(url, withCredentials:true)...
You will also need to configure the server to provide the Access-Control-Allow-Credentials header.
EDIT: It seems like an additional problem is that you do not want to have 2 servers, each of which serves a separate part of the application.
In this case, you can configure DartEditor to run the URL instead of files. Go to Run > Manage Launches and add a new Dartium or Dart2JS launch with the specified URL and source directory.
Another option is to select Run > Remote Connection and connect to a running instance of the browser or Dart VM.
Caution: I have not tried these parameters, so I canβt say how stable they are .
Zdeslav Vojkovic Jun 05 '13 at 14:56 2013-06-05 14:56
source share