Mixed content: load all resources via HTTPS to improve the security of your site

bancarel

New Member
Messages
13
Reaction score
0
Points
1
Hi, is it possible to force all to https in free hosting? I want to take the 'token' with firebase

in local:
orvO5EI.png





in 10hosting: https://azucarados.x10.bz/obtenerTokenPrueba.php
kICq0Jx.png

Mixed Content: The page at 'https://azucarados.x10.bz/obtenerTokenPrueba.php' was loaded over HTTPS, but requested an insecure script 'http://azucarados.x10.bz:2222/'. This request has been blocked; the content must be served over HTTPS.


in my .htaccess I think i force to https:
u6tOnSp.png



And in the dashboard/SSL too:
DdNOXyE.png
 
Last edited:

mrburnsx

Community Advocate
Community Support
Messages
377
Reaction score
36
Points
28
This looks like a coding issue in your file, the line that makes that request, that needs to be changed to https, not sure why your script is trying to talk to the hosting control panel though.

EDIT: Looks like the problem is in line 1 of your firebase.js file.

JavaScript:
import firebaseConfig from '../config/firebase-config.js';

That file will need to be moved somewhere else or that config folder removed. Due to how the control panel is designed, that /config gets redirected to the control panel.
 
Last edited:

bancarel

New Member
Messages
13
Reaction score
0
Points
1
I moved firebase-config.js out of the /config/ folder and I no longer got that error. Thanks.
 
Top