SSL Mixed content in admin Promotion

4 months ago
Nopc 4.60.5, running on Linux nginx SSL .
admin > Promotion > Discounts
Requirement
|-----Must be assigned to customer role
Failed to load requirement content.
this is due to browser blocking Mix content script that is HTTP and not HTTPS .

I have tried everything but modifying source code, which is not what i can do ..
Thanks.
4 months ago
tonysar wrote:
this is due to browser blocking Mix content script that is HTTP and not HTTPS.

I assume your website is HTTPS
Where is the script - can you download it and save it in your website and call it from there ?
4 months ago
from , developer panel , i can run that script on my browser and it shows User role and save button. but within admin it gets blocked and shows the error mentioned.
4 months ago
Content being blocked is jquery.min.js in admin section when trying to set discount ..
looking at the HEAD section , everything loaded with relative path .. so why this one being blocked and been marked as HTTP and not HTTPS is beyond me.. might be something simple. but this version seems to have way to many bugs .. ( for linux install )
4 months ago
You just need to configure the nginx correctly, look for topics on this on our forums.
4 months ago
Nginx configured correctly as per all the documentation including installing nopcommerce from nopcommerce doc.
i have JS files , front page and backend that being blocked by browser . called on HTTPS but served as HTTP..
4 months ago
im done with this .. Now i have to go after all those guys that i bought template and plugins and call my visa to charge back ..
4 worst days of my life.
4 months ago
Anyone can fix mixed content ? i can live with 502 error , but mix content blocking Promotion and many other java script from running ..

One thing that i noticed. if i change the store url from https://mydomain.ca/ to https://www.mydomain.ca/
in Warning section of site , i get a message stating that https://www.mydomain.ca is not matching store url http://mydomain.ca
where HTTP://mydomain.ca is set ? i can not find it in database nor any other files ..
4 months ago
Got it working .
in nginx configuration adding this

        add_header 'Content-Security-Policy' 'upgrade-insecure-requests';


No my promotion loads , i had issue with other javascript in front page was not loading ,and so far they seems to be working.