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;








0















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










share|improve this question






















  • 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

















0















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










share|improve this question






















  • 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













0












0








0








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










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












1 Answer
1






active

oldest

votes


















1














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






share|improve this answer























  • The request requests the method PUT and the response body is empty.

    – RM64
    Mar 23 at 9:07











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
);



);













draft saved

draft discarded


















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









1














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






share|improve this answer























  • The request requests the method PUT and the response body is empty.

    – RM64
    Mar 23 at 9:07















1














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






share|improve this answer























  • The request requests the method PUT and the response body is empty.

    – RM64
    Mar 23 at 9:07













1












1








1







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






share|improve this answer













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







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현