I have a server / client project, both written in dart. Now my server starts on port 1337
and when I run my client with the Run in dartium
, my static files are served on port 3030
which allows me to debug my client code in the Dart editor.
The problem is that this causes CORS when using AJAX calls. I have properly setup my server to accept other origins (with Access-Control-Allow-Origin
) but, for example, cookies aren't sent along.
Now I'm wondering: is there a way to serve my files with my server (running on 1337
) and still have the possibility to debug the client side code in the dart editor?
withCredentials
property onHttpRequest
totrue
- e.gHttpRequest.getString(url, withCredentials:true)
? - Zdeslav VojkovicAccess-Control-Allow-Origin
andAccess-Control-Allow-Credentials
). Still wondering if there is a concrete answer to my question. - enyo