How to cancel sending request with OPTION http method?

2 posts, 0 answers
  1. Bartlomiej
    Bartlomiej avatar
    6 posts
    Member since:
    Feb 2016

    Posted 02 Oct 2018 Link to this post

    I want to avoid sending request with OPTION http method. With below configuration Kendo sending two requests, first with OPTION method that sending nothing and right after with POST method with file data.
      async: {
        saveUrl: API_URL+'...',
        withCredentials: false,
        autoUpload: false,
      uploadEventHandler (e) {
        e.headers.set('Access-Control-Allow-Credentials', 'true');
      type: "post",
      error: function (e) {
        var files = e.files;
        if (e.operation === "upload") {
      upload: function (d) { = {
      showFileList: true,
  2. Plamen
    Plamen avatar
    3079 posts

    Posted 04 Oct 2018 Link to this post


    Options http request is a common issue that is observed by all cross origin requests and is not specific for Kendo Upload. You can refer to this forum thread where more information about it is provided and possible ways to disable it are added. In Kendo Upload you can use the upload event to add custom headers as it is described here at the bottom of the page.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top