Fix CORS exception (fixes #964)
This commit is contained in:
@@ -109,7 +109,7 @@ class HTML5HTTPRequest {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasContentType) {
|
if (!hasContentType && parent.contentType != null) {
|
||||||
|
|
||||||
request.setRequestHeader ("Content-Type", parent.contentType);
|
request.setRequestHeader ("Content-Type", parent.contentType);
|
||||||
|
|
||||||
@@ -381,4 +381,4 @@ class HTML5HTTPRequest {
|
|||||||
var promise:Dynamic;
|
var promise:Dynamic;
|
||||||
var uri:String;
|
var uri:String;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user