buddydev / mediapress

The Most advanced Media Gallery Plugin for BuddyPress
https://buddydev.com/mediapress/
32 stars 17 forks source link

HTTPS Issue #27

Closed Ruddernation-Designs closed 9 years ago

Ruddernation-Designs commented 9 years ago

I've just found that there is an issue with Mediapress and WordPress HTTPS, Media uploads fail on frontend only when Force SSL Administration is enabled on WP HTTPS plugin.

Ruddernation-Designs commented 9 years ago

Also using define('FORCE_SSL_ADMIN', true); also makes the uploads fail. An error occurred in the upload. Please try again later. is the displayed error.

sbrajesh commented 9 years ago

Hi Ben, Thank you for reporting. It will happen due to the Same origin security policy.

The uploader and the the handlers( end point) must use same protocol.

In your case, The upload handler( admin ajax) is using https while the uploader is not on a page using https protocol. So, That is happening.

Please have a look at this document https://en.wikipedia.org/wiki/Same-origin_policy

I am not sure if we should consider it a bug and try to if it or not. Can you please check if it is happening when the upload page is also using https?

sbrajesh commented 9 years ago

Hi Ben, Closing this as there is nothing much we can do here.