I made a script from the API PHP example to list user i have previously attacked and I can use the respect_gain to display target that gives me high respect like >= 3. I tested it on my Laptop is works but i want it to run a the blacklist page, that mean I have to make in JavaScript, which i did and it work on my laptop.
With my rookie idea on JavaScript am able to add something below the blacklist page. but when I tested the real code it doesn't work with error
Am i making API ajax call the wrong way
[image: i.imgur.com]
[image: i.imgur.com]
With my rookie idea on JavaScript am able to add something below the blacklist page. but when I tested the real code it doesn't work with error
Refused to connect to 'https://api.torn.com/user/2187384?selections=attacks&key=[API key removed]' because it violates the following Content Security Policy directive: "connect-src 'self' wss://*.torn.com wss://*.torncity.com".
Am i making API ajax call the wrong way
[image: i.imgur.com]
[image: i.imgur.com]