Skip to content

Commit

Permalink
fix(feedback): add additional headers for request
Browse files Browse the repository at this point in the history
  • Loading branch information
zoobestik committed May 3, 2024
1 parent 60eef29 commit a288a9c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions static/js/page/dokka-template/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,19 @@ export function initFeedback() {
const title = titleNode && titleNode.textContent;

window.fetch('https://forms-service.jetbrains.com/feedback', {
'method': 'POST',
'mode': 'cors',
'credentials': 'omit',
'body': JSON.stringify({
articleId: articleId || 'core-api',
title: title || 'Core API: Untitled',
method: 'POST',
mode: 'cors',
credentials: 'omit',
headers: {
'content-type': 'application/json',
},
body: JSON.stringify({
content: fields.content.value || '',
name: fields.name.value || '',
email: fields.email.value || '',
url: document.location.href || ''
url: document.location.href || '',
articleId: articleId || 'core-api',
title: title || 'Core API: Untitled'
})
});

Expand Down

0 comments on commit a288a9c

Please sign in to comment.