We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3df1d46 commit 4df7520Copy full SHA for 4df7520
1 file changed
src/app/shared/services/metadata-records.service.ts
@@ -1,4 +1,4 @@
1
-import { HttpClient } from '@angular/common/http';
+import { HttpClient, HttpHeaders } from '@angular/common/http';
2
import { inject, Injectable } from '@angular/core';
3
4
import { ENVIRONMENT } from '@core/provider/environment.provider';
@@ -18,6 +18,9 @@ export class MetadataRecordsService {
18
19
getMetadataRecord(osfid: string, format: MetadataRecordFormat) {
20
const url = `${this.webUrl}/metadata/${osfid}/?format=${format}`;
21
- return this.http.get(url, { responseType: 'text' });
+ return this.http.get(url, {
22
+ responseType: 'text',
23
+ headers: new HttpHeaders({ 'X-No-Auth-Redirect': 'true' }),
24
+ });
25
}
26
0 commit comments