[NRNS] Gaming Community

Help and Support => Technical Support - Website => Topic started by: [NRNS]HANNIBAL on May 08, 2018, 09:09:25 AM

Title: Bf3 Server stats are not loaded
Post by: [NRNS]HANNIBAL on May 08, 2018, 09:09:25 AM
Hi there ,

bf3 server stats are not loaded, its load only the first general stats
but no details like Expert League , Premier League , players details etc...

its loading for ever

thanks
Title: Re: Bf3 Server stats are not loaded
Post by: [NRNS]Mrfinn on May 08, 2018, 10:47:45 AM
ok noted
Title: Re: Bf3 Server stats are not loaded
Post by: [NRNS]HANNIBAL on May 13, 2018, 04:07:24 AM
 :)
Title: Re: Bf3 Server stats are not loaded
Post by: [NRNS]SirGuySW on May 15, 2018, 08:18:58 AM
This is a summary of the discussion(s) from Discord:

The error is caused by the site trying to load insecure versions of 3 google API files. Modern browsers refuse to load (or maybe can't, idk) insecure files while in a secure mode (https). (Client-side) Loading the secure versions of the files allows the page to run successfully.

The insecure files are the following:

The secure files are the following:


If the user pauses the page (ie: via a breakpoint) before the page initiates the Google API the user can inject the correct files then resume the page. The page will still try (and fail, with an error message) to load the insecure files but since it has already loaded the secure files the API runs successfully anyway and the user can interact with the page normally.


The following JavaScript code block is one way to inject the secure files:
Code: [Select]
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://maps.google.com/maps/api/js?sensor=true';
document.head.appendChild(script);

var script = document.createElement('link');
script.type = 'text/css';
script.rel = 'stylesheet';
script.href = 'https://fonts.googleapis.com/css?family=Lato:400,700';
document.head.appendChild(script);

var script = document.createElement('link');
script.type = 'text/css';
script.rel = 'stylesheet';
script.href = 'https://fonts.googleapis.com/css?family=Cuprum:400,400italic,700,700italic';
document.head.appendChild(script);
I did *not* find an automated way to accomplish this without extensions.
Title: Re: Bf3 Server stats are not loaded
Post by: [NRNS]DutchGit on May 15, 2018, 15:31:13 PM
fixed, i guess
Title: Re: Bf3 Server stats are not loaded
Post by: [NRNS]SirGuySW on May 16, 2018, 04:17:22 AM
fixed, i guess
Thanks. It's working for me.