aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
68 stars 43 forks source link

Mixed content issue on categories page #155

Closed wing5wong closed 3 years ago

wing5wong commented 3 years ago

Environment

  1. Version (e.g. 2017.10) Installing aimeos/aimeos (2020.10.3)

  2. Integration (Laravel, TYPO3, Symfony, SlimPHP or Flow) Laravel

  3. System (Linux, Mac, Windows) Windows

Describe the bug Mixed content warning and not possible to edit categories on fresh install VM489:1 Mixed Content: The page at 'https://X/admin/default/jqadm/search/catalog?lang=en' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://X/admin/default/jsonadm'. This request has been blocked; the content must be served over HTTPS.

Categories can be created but then can not be edited as they are not displayed in the list image

To Reproduce

Expected behavior No mixed content warning and categories displayed.

Additional context Seemed to have this problem with earlier version too, so wondering if somehow related to my specific configuration... not sure how or if its true though

aimeos commented 3 years ago

Can you check the APP_URL setting in your .env file if its value starts with "https://"?

wing5wong commented 3 years ago

Hi, yes the issue persists with the configuration here image

after checking this i ran php artisan config:cache

wing5wong commented 3 years ago

Sorry i have resolved this - it appears using cloudflare and flexible ssl results in connection to http vhosts here rather than ssl Im not sure if the generated url can be changed or not to work with this setup, but configuring full rather than flexible results in expected behaviour image