Get rid of cors, add static favicon
This commit is contained in:
parent
da16c9bd27
commit
e14484835e
2 changed files with 3 additions and 4 deletions
|
|
@ -5,6 +5,7 @@
|
|||
<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="manifest" href="/static/manifest.json"/>
|
||||
<link rel="shortcut icon" href="/static/favicon.ico">
|
||||
<meta charset="utf-8">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-sha256/0.11.0/sha256.min.js"></script>
|
||||
<!-- above allows use of sha256() on http -->
|
||||
|
|
|
|||
|
|
@ -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
|
||||
player.audio_set_volume(100)
|
||||
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
|
||||
socketio = SocketIO(app, cors_allowed_origins="*")
|
||||
socketio = SocketIO(app)
|
||||
|
||||
def queueSong(song):
|
||||
with playlistLock:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue