properius
2015-08-21 13:39:09 UTC
I'm using Rpc package and it uses http.BrowserClient to send API requests
to the server.
However on each such send request, Chrome reports an error saying:
Refused to set unsafe header "user-agent"
Refused to set unsafe header "content-length"
These two headers are not allowed to be set as per
http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method.
Shouldn't BrowserClient skip setting the headers that are not allowed by
the browsers?
to the server.
However on each such send request, Chrome reports an error saying:
Refused to set unsafe header "user-agent"
Refused to set unsafe header "content-length"
These two headers are not allowed to be set as per
http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method.
Shouldn't BrowserClient skip setting the headers that are not allowed by
the browsers?
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.