Get rid of cors, add static favicon

This commit is contained in:
Kristy Fournier 2026-03-04 19:55:47 -05:00
parent da16c9bd27
commit e14484835e
2 changed files with 3 additions and 4 deletions

View file

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link rel="stylesheet" href="/static/styles.css"> <link rel="stylesheet" href="/static/styles.css">
<link rel="manifest" href="/static/manifest.json"/> <link rel="manifest" href="/static/manifest.json"/>
<link rel="shortcut icon" href="/static/favicon.ico">
<meta charset="utf-8"> <meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-sha256/0.11.0/sha256.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/js-sha256/0.11.0/sha256.min.js"></script>
<!-- above allows use of sha256() on http --> <!-- above allows use of sha256() on http -->

View file

@ -66,10 +66,8 @@ player = vlcInstance.media_player_new()
# for client side volume to work as well as possible, set system volume to 100 and control in app # for client side volume to work as well as possible, set system volume to 100 and control in app
player.audio_set_volume(100) player.audio_set_volume(100)
app = Flask(__name__) app = Flask(__name__)
# because you are POSTing from another domain to this one, you need CORS
CORS(app)
# Replace the star with the frontend domain if you dislike being hacked # Replace the star with the frontend domain if you dislike being hacked
socketio = SocketIO(app, cors_allowed_origins="*") socketio = SocketIO(app)
def queueSong(song): def queueSong(song):
with playlistLock: with playlistLock: