Set image field in for a content type
Create a node with a image for this content type
Enable SSL in apache for all site
Follow instructions for https://www.drupal.org/https-information
Go to node edit form
Press delete image button from image field input
AJAX Fail with a Mexed content Warning.

AJAX URL are over HTTP instead over HTTPS.
Drupalsetting json object of button js placeholder have some incorrect URLS with HTTP instead HTTPS

    ....................................
   "ajax":{  
      "edit-ds-switch":{  
         "callback":"ds_switch_view_mode_switch_view_mode_preview_callback",
         "wrapper":"ds_switch_preview_wrapper",
         "event":"change",
         "url":"http:\/\/www.DOMAIN.COM\/node\/5094\/edit?ajax_form=1", 
         "dialogType":"ajax",
         "submit":{  
            "_triggering_element_name":"ds_switch"
         }
      },
      "edit-field-documento-word-0-upload-button":{  
         "callback":[  
            "Drupal\\file\\Element\\ManagedFile",
            "uploadAjaxCallback"
         ],
         "wrapper":"ajax-wrapper",
         "effect":"fade",
         "progress":{  
            "type":"throbber",
            "message":null
         },
         "event":"mousedown",
         "keypress":true,
         "prevent":"click",
         "url":"http:\/\/www.www.DOMAIN.COM\/node\/5094\/edit?element_parents=field_documento_word\/widget\/0\u0026ajax_form=1",
         "dialogType":"ajax",
         "submit":{  
            "_triggering_element_name":"field_documento_word_0_upload_button",
            "_triggering_element_value":"uPLOAD"
         }
      },
      "edit-field-image-0-remove-button":{  
         "callback":[  
            "Drupal\\file\\Element\\ManagedFile",
            "uploadAjaxCallback"
         ],
         "wrapper":"ajax-wrapper--2",
         "effect":"none",
         "progress":{  
            "type":"throbber",
            "message":null
         },
         "event":"mousedown",
         "keypress":true,
         "prevent":"click",
         "url":"http:\/\/www.DOMAIN.COM\/node\/5094\/edit?element_parents=field_image\/widget\/0\u0026ajax_form=1",
         "dialogType":"ajax",
         "submit":{  
            "_triggering_element_name":"field_image_0_remove_button",
            "_triggering_element_value":"Eliminar"
         }
      }
   },
  .........................
}

Anyone have this behavior?

How i can change Ajax URL for each event?

Very thankx

Update.

Close this. I can resolve this.
the key of question was in domain module wrong configuration.

Comments

JoaoGamma created an issue. See original summary.

JoaoGamma’s picture

Issue summary: View changes
cilefen’s picture

Title: MIxed content Ajax action, remove image » MIxed content warnings on Ajax after switching a site to SSL
Related issues: +#2611420: Aggregated CSS assumes HTTP, causes mixed content warning when accessed via HTTPS
JoaoGamma’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)