score:0
as i suspected it was not really a cors problem. the problem was that i was trying to set a wrong key names:
// addition of data to the formdata object
newaudiodata.append("audiotitle", audiotitle);
newaudiodata.append("audiotags", json.stringify(audiotags));
where as my application was expecting 'threadtitle' and 'threadtags'.
so changing them to their correct form solved the problem:
// addition of data to the formdata object
newaudiodata.append("threadtitle", audiotitle);
newaudiodata.append("threadtags", json.stringify(audiotags));
Source: stackoverflow.com
Related Query
- CORS error on posting file upload form from browser to firebase but no error from postman
- Error when styling React components imported from index file, but not when importing directly from component file
- File upload from form not woking in React
- CORS error when posting request in React app to PHP file in Apache server on localhost
- Upload file is only sending text to e-mail from React Form
- File upload from website to Firebase storage using Firebase v9
- I want to send the data from a request form to a database in the MySQL workbench from a javascript file in a ReactJs project, but I have no idea how
- File Upload Error - Works in Postman but not on frontend
- i am trying to upload file using react hook form and i used useController function and i am getting error
- 415 unsupported media type error while trying to upload file from react to web api
- How do I upload multiple files to Firebase from React and get the file name?
- Select data from firebase via id gives me a CORS error
- Playing audio file from Firebase Storage works locally, but not on deployed appliation
- Trying to upload a PDF file in my form in React component but getting {} when I use setFormData
- Asset images from Contentful CMS reach my Gatsby/React app, but a browser error says they are "null"
- Trying to upload files to firebase storage but its not working. Error object is empty, how do I figure out what's wrong?
- I want to download a file from cdn using a tag but it is opening file in browser
- I want to keep the file upload optional but the form is not submitting if file is not uploaded
- Unable to upload file from react to laravel using react hook form and ajax
- Why am I getting an error that a file in Firebase Storage doesn't exist but it actually does when you follow the link?
- 503 error when trying to upload image file on deployed react client & express server, followed by CORS error
- i am trying to upload file in react to firebase and setfileUrl.somehow its giving asyn promise error
- React.js how to I go about getting data from my form and posting it
- Whether all error messages should come from the backend in a form that can be shown to the user?
- React + Firebase Storage + File upload and progress display
- Best way to store file objects in React Redux store (files upload from DropZone?)
- Upload PDF to Firebase Storage - Uncaught Error: This browser doesn't seem to support creating Blobs
- How do I upload a file from Axios to Django?
- reactjs how to input multiple file from form
- CORS error on httpsCallable firebase in Create React App
More Query from same tag
- I have errors when trying to install material UI in my terminal
- Change state but don't change style Reactjs
- load function on react
- Material UI/React errors
- How to tell if a user is logged in with http only cookies and JWT in react (client-side)
- React Router v5 - How to force a route to always re-render when location changes?
- Pass a function through React Router
- Add dynamic watermark that randomly changes position over video React/Node
- How Do I Render A Lot Of Empty Divs As Grid Items In React?
- How can I get my React App to correctly send page title in link previews? Using NGINX as proxy
- How to get current route in react-router 2.0.0-rc5
- How to correctly set initial state in React with Typescript without constructor?
- Firebase analytics log event not working in production build of electron
- IIS Redirect all request on root
- Creating custom function in React component
- Redux: re-rendering children on store state update
- React Router re-render same component
- React component loading pattern (or anti-pattern?)
- How emit event to LoadingOverlay component from Axios custom component
- Package.json showing differant version of react
- Antd word-wrap in Select
- How to set input alphanumeric value format in input field reactjs?
- Dynamic tag incorrect casing
- How to show x power 2 (sup) in button element
- Wrong git branch loaded in node_modules by yarn install command
- using async await in a handle submit
- Redirecting with state and template literals react
- Including an image in imported css file in react using webpack
- Filtering an ag-grid based on selected row in another ag-grid
- Pass object into react component using react router