CORS
This commit is contained in:
@@ -19,7 +19,9 @@
|
|||||||
if (self) {
|
if (self) {
|
||||||
_contentType = contentType;
|
_contentType = contentType;
|
||||||
_httpHeaders = [@{
|
_httpHeaders = [@{
|
||||||
@"Content-Type" : _contentType ?: @"application/octet-stream"
|
@"Content-Type" : _contentType ?: @"application/octet-stream",
|
||||||
|
@"Access-Control-Allow-Origin" : @"*", // CORS
|
||||||
|
@"Access-Control-Allow-Credentials" : @"true"
|
||||||
} mutableCopy];
|
} mutableCopy];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user