You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a problem when setting up routes on a Wordpress installation that has the FORCE_SSL_ADMIN flag set to true.
If I want to use a route in an ajax script fetching the url with the route_url() method it will always use the protocol of the public site even though i'm calling it from admin. That's an issue because browsers will not allow that:
Hi,
I encountered a problem when setting up routes on a Wordpress installation that has the FORCE_SSL_ADMIN flag set to true.
If I want to use a route in an ajax script fetching the url with the
route_url()
method it will always use the protocol of the public site even though i'm calling it from admin. That's an issue because browsers will not allow that:I'm not sure this is a good solution but fixed this in a forked version by changing the return statement of the
Router::url()
method like so:74a98ec110187480d2d2bd5fefdb40ae6b77effb
Do you think this is a sustainable solution? I can send a pull request if you would like?
Thanks and what great lib btw!
The text was updated successfully, but these errors were encountered: