Skip to content

Commit

Permalink
removed headders
Browse files Browse the repository at this point in the history
  • Loading branch information
abilpraju-aot committed Sep 11, 2023
1 parent 5271311 commit 1a6a609
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const form_options = { readOnly: true, renderMode: "flat" };
// Function to get submission data if formadapter is enabled
async function fetchSubmission() {
const submission = await fetch(form_info.submission_url, {
headers: {
"Content-Type": "application/json",
Authorization: form_info.auth_token,
},
});
const submission = await fetch(form_info.submission_url);
// const submission = await fetch(form_info.submission_url, {
// headers: {
// "Content-Type": "application/json",
// Authorization: form_info.auth_token,
// },
// });
const result = await submission.json();
return result;
}
Expand Down

0 comments on commit 1a6a609

Please sign in to comment.