The 404 City

404city.neocities.org

62,377 views
137 followers
16,828 updates
0 tips
Hello! i would like to ask: how you attaching polls and stuffs to your webpage without being a supporter? I'm getting that nasty Content Security Policy stuffs all time :/
5 likes
404city's avatar 404city 1 week ago

Hi! You usually donโ€™t need to be a supporter to add these things to your webpage. Most of these applications give you an iFrame code or something similar, which works without CSP error. If youโ€™re getting an error, itโ€™s probably because of your app's JS code is trying to fetch or read an external file, which wonโ€™t work for free users on Neocities. If you can share your code with me, I can help you better with it :3

1 like
ransei's avatar ransei 1 week ago

Thank you! For example do you know a good way add a status from https://status.cafe/ to the website? This is the code site tells me:

1 like
ransei's avatar ransei 1 week ago

I omitted tag chars of html to be visible: div id="statuscafe" div id="statuscafe-username" /div div id="statuscafe-content" /div /div script src="https://status.cafe/current-status.js?name=ransei422" defer /script

1 like
404city's avatar 404city 1 week ago

I checked your source code, and it looks like you're using the script from your own site (script src="assets/js/status.js" defer/script), which is probably why you got a CSP error. Instead, try using the original hotlink like this: script src="https://status.cafe/current-status.js?name=ransei422" defer/script. Hope that solves :)

1 like
ransei's avatar ransei 1 week ago

Thanks! I tried as you said: script ใ€Œsrc="https://status.cafe/current-status.js?name=ransei422" /scriptใ€, but after uploading to neocities I'm still seeing "Refused to connect to 'https://status.cafe/users/ransei422/status.json' because it violates the following Content Security Policy directive: "connect-src 'self' data: blob:".""

1 like
ransei's avatar ransei 1 week ago

Looks like this line from js source is causing the problem: "fetch("https://status.cafe/users/ransei422/status.json")"

1 like
404city's avatar 404city 1 week ago

Hmm... I don't get it. It works fine for me, I even tried to use your own script hotlink on a temporary html file on my site and it showed me your status without any problem. Have you ever tried to hard refresh (CTRL + F5) after updating the code?

1 like
ransei's avatar ransei 1 week ago

Yeah, but nothing seems to work :/ Iโ€™ve heard that the CSP tends to loosen up as the account gets older. Still, since your site is about the same age as mine, that doesnโ€™t really make much sense...

1 like
404city's avatar 404city 1 week ago

Well, I guess so. I don't have any other idea. Wish I could help about it. Hope you don't mind... :(

1 like
ransei's avatar ransei 1 week ago

Thats okay! Thank you anyway :) I may have one more reason to become supporter now :D

1 like
New theme! This is the 8th one. I liked the high contrast neon theme. I uploaded it just now. Homepage is finished, I'll do the rest tomorrow. Shouldn't take too long.
16 likes
3 likes
Amazing site!
2 likes
404city's avatar 404city 2 months ago

Thanks! <3

1 like
Hello! I finished my widgets page today. Yesterday, I was working on a simple calendar widget and I finished it today! You can check it out if you're interested! I'm planning to add things like clock, visitor counter, music player etc. Stay tuned! <3
8 likes
it would be funny if someone just so happened to unfollow
3 likes
404city's avatar 404city 3 months ago

Lol fr :D

1 like

Website Stats

Last updated 1 week ago
CreatedMay 22, 2025
Site Traffic Stats

Tags

2000s coding internet personal html