We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello!
If I send post request from httipe like this http http://127.0.0.1:5000/messages text=HelloWorld, all is well, and i get this server answers:
httipe
http http://127.0.0.1:5000/messages text=HelloWorld
127.0.0.1 - - [03/Nov/2017 22:41:13] "OPTIONS /messages HTTP/1.1" 200 - 127.0.0.1 - - [03/Nov/2017 22:52:45] "POST /messages HTTP/1.1" 201 -
But, if I try send POST from axios, like this:
axios.post(`http://127.0.0.1:5000/messages`, { text: JSON.stringify(data) }) .then(response => { console.log(response) }) .catch(e => { console.log(e) })
server return just OPTIONS:
127.0.0.1 - - [03/Nov/2017 22:41:13] "OPTIONS /messages HTTP/1.1" 200 -
POST does not reach the request. I do not understand what's the matter.
My settings:
RESOURCE_METHODS = ['GET', 'POST', 'DELETE'] PUBLIC_METHODS = ['GET', 'POST'] ITEM_METHODS = ['GET', 'PATCH', 'PUT', 'DELETE'] PUBLIC_ITEM_METHODS = ['GET', 'PATCH', 'PUT'] X_DOMAINS_RE = '*' X_DOMAINS = '*'
The text was updated successfully, but these errors were encountered:
This looks like a client issue. Please use StackOverflow for this kind of inquiries.
Sorry, something went wrong.
No branches or pull requests
Hello!
If I send post request from
httipe
like thishttp http://127.0.0.1:5000/messages text=HelloWorld
, all is well, and i get this server answers:But, if I try send POST from axios, like this:
server return just OPTIONS:
127.0.0.1 - - [03/Nov/2017 22:41:13] "OPTIONS /messages HTTP/1.1" 200 -
POST does not reach the request. I do not understand what's the matter.
My settings:
The text was updated successfully, but these errors were encountered: