Skip to content

Commit 724c38c

Browse files
authored
Public tags form: send ReCaptcha payload to API (#3263)
* Public tags form: send ReCaptcha payload to API Resolves #3262 * update screenshots
1 parent e378636 commit 724c38c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

ui/publicTags/submit/PublicTagsSubmitForm.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ const PublicTagsSubmitForm = ({ config, userInfo, onSubmitResult }: Props) => {
7272
fetchParams: {
7373
method: 'POST',
7474
body: { submission: body },
75+
headers: {
76+
'recaptcha-v2-response': token,
77+
},
7578
},
7679
})
7780
.then(() => ({ error: null, payload: body }))
-10.4 KB
Loading
-12.5 KB
Loading

0 commit comments

Comments
 (0)