Add:Start of chromecast plugin & update cors accept header, move sortable to static

This commit is contained in:
advplyr 2022-02-17 17:39:38 -06:00
parent 6c6a0b4ba6
commit f51299c798
7 changed files with 52 additions and 172 deletions

View file

@ -28,7 +28,7 @@ class Auth {
cors(req, res, next) {
res.header('Access-Control-Allow-Origin', '*')
res.header("Access-Control-Allow-Methods", 'GET, POST, PATCH, PUT, DELETE, OPTIONS')
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization")
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Accept-Encoding, Range, Authorization")
res.header('Access-Control-Allow-Credentials', true)
if (req.method === 'OPTIONS') {
res.sendStatus(200)