Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis committed Jul 8, 2024
1 parent 89a1d99 commit 1ce6336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/services/metadata-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class MetadataSchemaService extends Service {
method: 'GET',
headers: {
'Content-Type': 'application/json; charset=utf-8',
'X-XSRF-TOKEN': document.cookie.match(/XSRF-TOKEN\=([^;]*)/)['1'],
},
};

Expand Down
5 changes: 2 additions & 3 deletions app/services/policies.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default class PoliciesService extends Service {
const result = await fetch(url, {
method: 'GET',
headers: {
// 'Content-Type': 'application/json'
credentials: 'include',
'X-XSRF-TOKEN': document.cookie.match(/XSRF-TOKEN\=([^;]*)/)['1'],
},
});

Expand Down Expand Up @@ -86,7 +85,7 @@ export default class PoliciesService extends Service {
const response = yield fetch(url, {
method: 'GET',
headers: {
credentials: 'include',
'X-XSRF-TOKEN': document.cookie.match(/XSRF-TOKEN\=([^;]*)/)['1'],
},
});

Expand Down

0 comments on commit 1ce6336

Please sign in to comment.