WordPress.org

Ready to get started?Download WordPress

Forums

Network usage with Add Media: cross domain (4 posts)

  1. klml
    Member
    Posted 1 year ago #

    I use wp-user-frontend in a WP-Network with multible domains and wp-user-frontend.

    Posting with wp-user-frontend works excellent, but JS-upload in the Add Media (its a POST to /wp-admin/async-upload.php) fails with an '302 Found' and no response Date (in firebug its red)

    I tried several solutions:

    function.php send_headers with

    header('Access-Control-Allow-Origin: *');
    header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
    header('Access-Control-Max-Age: 1000');
    header('Access-Control-Allow-Headers: Content-Type');

    and in .htaccess

    Header append x-frame-options "ALLOW-FROM http://example.com"

    (example.com is my domain)

    and

    Header append x-frame-options "ALLOW-FROM *"

    http://codex.wordpress.org/Create_A_Network
    http://wordpress.org/extend/plugins/wp-user-frontend/
    http://codex.wordpress.org/Media_Add_New_Screen

  2. Tagging this for wp-user-frontend because the issue is the plugin. :/

  3. klml
    Member
    Posted 1 year ago #

    Hi Ipstenu,

    thx for this idea. So I tried it with DJD Site Post and got the same problem with uploading images.
    And the interface is the same. It seems to me, both plugins use the same kind of Media Library Screen.

    http://wordpress.org/extend/plugins/djd-site-post/
    http://codex.wordpress.org/Media_Library_Screen

  4. Yes, but you have to change certain bits of code to work with Multisite (like how you call options.php in SingleSite, but you can't in Multisite).

    I don't know those plugins enough to say.

Topic Closed

This topic has been closed to new replies.

About this Topic