Fix coin tracker data persistence issue

- Updated API URLs from localhost:3000 to localhost:3001 in script.js
- Added CORS headers to server.js to enable cross-origin requests
- Changed server port from 3000 to 3001 to avoid port conflicts
- Updated CSP in index.html to allow connections to localhost:3001
- Coin tracker entries now persist across page refreshes
This commit is contained in:
root
2025-09-19 13:29:59 +02:00
parent c0bf7413de
commit 4803ae2d18
3 changed files with 79 additions and 49 deletions

View File

@@ -8,7 +8,7 @@
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net;
style-src 'self' 'unsafe-inline';
img-src 'self' data:;
connect-src 'self' http://localhost:3000;
connect-src 'self' http://localhost:3001;
">
<title>Rechner</title>