Multi-domain

Home Forums Plugin Support Multi-domain

This topic contains 4 replies, has 1 voice, and was last updated by  kapsicum 8 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #370

    kapsicum
    Member

    Hi,

    it seems that your plugin UserMeta Pro(UMP) have some difficulties to handle multidomains configuration. Specialy when you use the multiDomains option with WPML plugin (http://wpml.org/2009/04/domain-per-language-subdomains-or-language-folders/)

    Case studied :

    On the login form, UMP load correctly the form, but when submiting, it send the data to the primary domain (ex: domain.com), and the one used on the translated version of the website (ex: domain.fr).

    That’s why the “admin-ajax.php” script respond an empty response (security checking process probably)

    #245

    kapsicum
    Member

    I confirm the security denied access
    -> Access-Control-Allow-Origin

    Cross domain policy

    #249

    Khaled
    Keymaster

    Currently UMP doesn’t fully optimized with multidomain/wpml/wpmu. We will optimize UMP with those feature by next version.

    Thank you very much.

    #250

    kapsicum
    Member

    Here is a quick PHP plugin to bypass this access restriction

    —– START PHP ——-
    /**
    * @package Access Ajax Header
    * @version 1.0
    */
    /*
    Plugin Name: Access Ajax Header
    Description: Allow cross domain ajax request.
    */
    define(‘ACCESSAJAXHEADER_VERSION’, ‘1.0’);
    define(‘AACCESSAJAXHEADER_PLUGIN_URL’, plugin_dir_url( __FILE__ ));

    function access_ajax_init(){
    header(“Access-Control-Allow-Origin: *”);
    }
    add_action(‘admin_init’,’access_ajax_init’);

    —– END PHP ——-

    #252

    kapsicum
    Member

    Of course, be careful…

    header(“Access-Control-Allow-Origin: *”);

    the * have to be replaced by an authorized domain.
    This line can be repeated for each authorized domain.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.