Axios post works, Axios put doesn't get past preload requestForce download GET request using axiosMy POST ajax request returns 302 on a Laravel ControllerNetwork Error in axios post request react-nativeAxios OPTIONS instead of POST Request. Express Rest API (CORS)Django CSRF cookie + ReactJS axios post requestaxios put Not workingAxios post stay on pendingSend Parameters in a POST request in axiosAxios headers work for Django GET request, but not PUT requestAxios PUT options ok, but not doing the real call (POST does work)
Are modes in jazz primarily a melody thing?
Test whether a string is in a list with variable
Justification of physical currency in an interstellar civilization?
How could a humanoid creature completely form within the span of 24 hours?
Is it safe to keep the GPU on 100% utilization for a very long time?
What did Varys actually mean?
Select list elements based on other list
Why was Gemini VIII terminated after recovering from the OAMS thruster failure?
What detail can Hubble see on Mars?
Drug Testing and Prescribed Medications
cd ` command meaning and how to exit it?
How can I test a shell script in a "safe environment" to avoid harm to my computer?
Why is the blank symbol not considered part of the input alphabet of a Turing machine?
Why did Dr. Strange keep looking into the future after the snap?
Does restarting the SQL Services (on the machine) clear the server cache (for things like query plans and statistics)?
An adjective or a noun to describe a very small apartment / house etc
Why always 4...dxc6 and not 4...bxc6 in the Ruy Lopez Exchange?
My parents are Afghan
And now you see it
How do I give a darkroom course without negs from the attendees?
Do the Zhentarim fire members for killing fellow members?
My C Drive is full without reason
Can a player choose to add detail and flavor to their character's spells and abilities?
Why doesn't a particle exert force on itself?
Axios post works, Axios put doesn't get past preload request
Force download GET request using axiosMy POST ajax request returns 302 on a Laravel ControllerNetwork Error in axios post request react-nativeAxios OPTIONS instead of POST Request. Express Rest API (CORS)Django CSRF cookie + ReactJS axios post requestaxios put Not workingAxios post stay on pendingSend Parameters in a POST request in axiosAxios headers work for Django GET request, but not PUT requestAxios PUT options ok, but not doing the real call (POST does work)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Axios put won't get past preload request, but if I change it to post, the request does send.
This is my code. In the network tab OPTIONS shows, but on post, it sends OPTIONS and POST.
handleSubmit()
axios.put(process.env.VUE_APP_API_BASE + 'auth/password',
password: this.password,
password_confirmation: this.password_confirmation,
current_password: this.current_password
)
What could be causing the PUT request to not send?
For both PUT and POST, the OPTIONS request returns code 200
ruby-on-rails vue.js axios
add a comment |
Axios put won't get past preload request, but if I change it to post, the request does send.
This is my code. In the network tab OPTIONS shows, but on post, it sends OPTIONS and POST.
handleSubmit()
axios.put(process.env.VUE_APP_API_BASE + 'auth/password',
password: this.password,
password_confirmation: this.password_confirmation,
current_password: this.current_password
)
What could be causing the PUT request to not send?
For both PUT and POST, the OPTIONS request returns code 200
ruby-on-rails vue.js axios
The option request is successful but the actual put request doesn't. The options is just for the CORS request.
– RM64
Mar 23 at 6:22
add a comment |
Axios put won't get past preload request, but if I change it to post, the request does send.
This is my code. In the network tab OPTIONS shows, but on post, it sends OPTIONS and POST.
handleSubmit()
axios.put(process.env.VUE_APP_API_BASE + 'auth/password',
password: this.password,
password_confirmation: this.password_confirmation,
current_password: this.current_password
)
What could be causing the PUT request to not send?
For both PUT and POST, the OPTIONS request returns code 200
ruby-on-rails vue.js axios
Axios put won't get past preload request, but if I change it to post, the request does send.
This is my code. In the network tab OPTIONS shows, but on post, it sends OPTIONS and POST.
handleSubmit()
axios.put(process.env.VUE_APP_API_BASE + 'auth/password',
password: this.password,
password_confirmation: this.password_confirmation,
current_password: this.current_password
)
What could be causing the PUT request to not send?
For both PUT and POST, the OPTIONS request returns code 200
ruby-on-rails vue.js axios
ruby-on-rails vue.js axios
asked Mar 23 at 6:16
RM64RM64
64
64
The option request is successful but the actual put request doesn't. The options is just for the CORS request.
– RM64
Mar 23 at 6:22
add a comment |
The option request is successful but the actual put request doesn't. The options is just for the CORS request.
– RM64
Mar 23 at 6:22
The option request is successful but the actual put request doesn't. The options is just for the CORS request.
– RM64
Mar 23 at 6:22
The option request is successful but the actual put request doesn't. The options is just for the CORS request.
– RM64
Mar 23 at 6:22
add a comment |
1 Answer
1
active
oldest
votes
Check your OPTIONS response.
Most likely PUT is missing from the list of accepted method requests. Check the Access-Control-Request-Method header values.
More about access control request methods here
The request requests the method PUT and the response body is empty.
– RM64
Mar 23 at 9:07
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55311151%2faxios-post-works-axios-put-doesnt-get-past-preload-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check your OPTIONS response.
Most likely PUT is missing from the list of accepted method requests. Check the Access-Control-Request-Method header values.
More about access control request methods here
The request requests the method PUT and the response body is empty.
– RM64
Mar 23 at 9:07
add a comment |
Check your OPTIONS response.
Most likely PUT is missing from the list of accepted method requests. Check the Access-Control-Request-Method header values.
More about access control request methods here
The request requests the method PUT and the response body is empty.
– RM64
Mar 23 at 9:07
add a comment |
Check your OPTIONS response.
Most likely PUT is missing from the list of accepted method requests. Check the Access-Control-Request-Method header values.
More about access control request methods here
Check your OPTIONS response.
Most likely PUT is missing from the list of accepted method requests. Check the Access-Control-Request-Method header values.
More about access control request methods here
answered Mar 23 at 7:04
Radu DițăRadu Diță
4,36311321
4,36311321
The request requests the method PUT and the response body is empty.
– RM64
Mar 23 at 9:07
add a comment |
The request requests the method PUT and the response body is empty.
– RM64
Mar 23 at 9:07
The request requests the method PUT and the response body is empty.
– RM64
Mar 23 at 9:07
The request requests the method PUT and the response body is empty.
– RM64
Mar 23 at 9:07
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55311151%2faxios-post-works-axios-put-doesnt-get-past-preload-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The option request is successful but the actual put request doesn't. The options is just for the CORS request.
– RM64
Mar 23 at 6:22