post data #83
keshav1112
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
could you tell me how can we post data.
const response = await fetch(
'https://api.allorigins.win/get?url='+encodeURIComponent(postData),
{
method: "POST",
body: JSON.stringify(payload),
headers: {
"Content-Type": "application/json",
"Access-Control-Allow-Origin":"*",
Authorization:
Bearer token here,},
}
);
Beta Was this translation helpful? Give feedback.
All reactions