plegall / Piwigo-community

11 stars 23 forks source link

add_photos uses HTTP when using HTTPS proxy #60

Closed ckayfish closed 3 years ago

ckayfish commented 3 years ago

Users connect to my reverse proxy with HTTPS, which talks to piwigo with HTTP. All standard, do it for dozens of apps, works with all of Piwigo. URL is https://mydomain.com

However, when I attempt to upload a photo at /index.php?/add_photos, nothing happens and I can see an error POSTing to http://mydomain.com/ws.php?method=pwg.images.upload&format=json. It should be POSTING to HTTPS but I cant find where this is happening

ckayfish commented 3 years ago
w3noym.js:116 Mixed Content: The page at 'https://mydomain.com/index.php?/add_photos' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mydomain.com/ws.php?method=pwg.images.upload&format=json'. This request has been blocked; the content must be served over HTTPS.
VM943:1 Uncaught SyntaxError: Unexpected end of JSON input
Error @ index.php?/add_photos:715
(anonymous) @ index.php?/add_photos:623
index.php?/add_photos:729 Uncaught TypeError: Cannot read property 'label' of null
    at o.Uploader.UploadComplete (index.php?/add_photos:729)
    at o.Uploader.<anonymous> (w3noym.js:130)
    at Array.<anonymous> (w3noym.js:115)
    at i (w3noym.js:115)
    at Object.r [as inSeries] (w3noym.js:115)
    at o.Uploader.dispatchEvent (w3noym.js:115)
    at o.Uploader.trigger (w3noym.js:115)
    at o.Uploader.g (w3noym.js:130)
    at w3noym.js:130
ckayfish commented 3 years ago

Duplicate issue