Clean up API request headers
This commit is contained in:
parent
01f2211c11
commit
8d9be438a6
@ -175,6 +175,7 @@ export default Service.extend({
|
||||
|
||||
headers.Authorization = `Client-ID ${this.get('applicationId')}`;
|
||||
headers['Accept-Version'] = API_VERSION;
|
||||
headers['API-User-Agent'] = 'Ghost';
|
||||
|
||||
return fetch(url, {headers})
|
||||
.then((response) => this._checkStatus(response))
|
||||
|
Loading…
Reference in New Issue
Block a user