You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in the coverage task, browser tests are run by opening an HTML file with content-shell. This works, but means that any XHR request from that file will have an Origin: null header. If the request also sets withCredentials = true and the server responds with the Access-Control-Allow-Origin: * header, the request will fail.
To fix this, browser tests will have to be served by a pub serve process.
The text was updated successfully, but these errors were encountered:
The best solution would be for the test package to support coverage since it already runs browser tests like this, but that is probably still a ways off (see dart-lang/test#36).
Currently in the coverage task, browser tests are run by opening an HTML file with content-shell. This works, but means that any XHR request from that file will have an
Origin: null
header. If the request also setswithCredentials = true
and the server responds with theAccess-Control-Allow-Origin: *
header, the request will fail.To fix this, browser tests will have to be served by a pub serve process.
The text was updated successfully, but these errors were encountered: