Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to upload avatar cross domain call


  • mrizwanghuman
    Participant

    @mrizwanghuman

    We are hosting our blog in a subdirectory (https://domain.com/blog/), not a subdomain (https://blog.domain.com). We are fetching content behind reverse proxy from server B.

    Users cannot upload their buddy-press profile avatar.

    Here is header

    Request URL:http://www.example.com/wp-admin/admin-ajax.php
    Request Method:POST
    Status Code:302 Moved Temporarily.
    I tried following code

    $.ajaxPrefilter(function(options){
    options.xhrFields={
    withCredentials: true
    };
    });
    Your help will be greatly helpful. I already setup header for other ajax call to

    headers[‘Access-Control-Allow-Origin’] = “*”

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar