score:0
so i used different approach with axios and it worked:
let axiosconfig = {
headers: {
'content-type': 'application/json;charset=utf-8',
'access-control-allow-origin': '*',
},
};
axios
.post(webhookurl, info, axiosconfig)
.then((res) => {
console.log('response received: ', res);
})
.catch((err) => {
console.log('axios error: ', err);
});
Source: stackoverflow.com
Related Query
- Json cant go through webhook call on form submit
- how to test button that call submit form using jest and react testing library
- How to submit a form through onSubmit event handler
- Res.download() working with html form submit but not an Axios post call
- React.js: How to update API call from form submit
- How to iterate through child objects from JSON API call
- How to call API and stores results in a state when a form submit is clicked using react hooks
- Invalid Hook Call for Button to submit form
- React: I want to submit a form and want to save data in redux store through hooks (useSelector and useDispatch)
- ReactJS form submit this.props.history.push('/downloads') not linking through to the new page
- how to submit a formik form through mutation with ApolloClient?
- Asserting prop call for form submit in React using React Testing Library
- Redux - How to get form values in its submit handler and call event.preventDefault()?
- Issue: React contact form increments every API call n +1 times after every submission and doesn't submit after first click
- Cant map through props - React JS/API Call
- How do I asynchronously get JSON schema through an API call in react-crud-admin library?
- My json object formed through a form is blank
- How to submit a form using Enter key in react.js?
- React Formik - Trigger validation only on form submit
- React - clearing an input value after form submit
- React.js: submit form programmatically does not trigger onSubmit event
- React formik form validation: How to initially have submit button disabled
- How can I parse through local JSON file in React js?
- Basic React form submit refreshes entire page
- How to submit form from a button outside that component in React?
- How to submit the form by Material UI Dialog using ReactJS
- Can not submit form react-bootstrap
- How to submit form component in modal dialogue using antd react component library
- Submit button from outside Redux Form v6.0.0
- React Router v4 Redirecting on form submit
More Query from same tag
- React - getDerivedStateFromProps and axios
- Finding React Components nested inside html elements
- ReactJS : What is the best way to give keys in array element
- Change color of Material UI Select component border not working
- Removing element from drop-down react-select
- Select box and getting the option label
- Use React fetch to call Dango REST getting a 403 response
- How can I change material ui datepicker language and default timezone?
- Not able to import font-awesome in Reactjs project
- React: Re-render sets state to initial value even after calling setState
- how to delete data from react crud using node js to mongoDB
- Connecting Node.js with React
- How to stop user from accessing nodejs express routes
- Cant fetch data from child component react
- UseCallback in combination with StrictMode
- How to combine two json apis in react based on id
- Value in textarea doesn't get deleted in REACT
- Tailwind CSS custom gradient with React state and FastAverageColor
- Generate Random Same Colors in React
- How to change font family for React Recharts library X-axis / Y-axis ticks?
- React Video Component not updating when state changes
- Anchor link to div on the same page not working in Safari
- React Hooks must be called in a React function component when using React RTK query createApi
- How to block negative values in Input tags while entering in forms
- How to fix python flask cors issue using flask-cors library
- Component definition is missing display name for forwardRef
- How to convert blob to image and display it on React?
- how to immediately render component after making changes in database
- How to Redirect to a route after identifying a screen size of the browser in React?
- How can i set query params in rxjs ajax?