How to upload avatar cross domain call
-
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 toheaders[‘Access-Control-Allow-Origin’] = “*”
- You must be logged in to reply to this topic.