Support

Account

Home Forums Backend Issues (wp-admin) Need protocol relative URLs in back-end scripts

Helping

Need protocol relative URLs in back-end scripts

  • Hello,

    My website is behind a Web Application Firewall (WAF) that does SSL offloading.

    This means that the web server receives every request as if it’s non-SSL (http) even though the browser is on a SSL (https) connection.

    Would it be possible to add a filter to the helpers_get_dir function so we can remove the ‘http:’ protocol or force it to be ‘https:’?

    Right now I have to use this code to get the back-end working:
    'dir' => str_replace('http:', '', apply_filters('acf/helpers/get_dir', __FILE__)),

    Thanks,
    Svavar

  • Hi @svavar,

    Thanks for the post.

    This issue has been brought to the attention of the plugin author and hopefully this will see its way into the plugin sometime soon 🙂

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

The topic ‘Need protocol relative URLs in back-end scripts’ is closed to new replies.