Version 2.1.3 - Ajout d'une requete CORS
All checks were successful
Subsonics - Web/pipeline/head This commit looks good
All checks were successful
Subsonics - Web/pipeline/head This commit looks good
This commit is contained in:
parent
0cc40b443a
commit
08f50f71a8
@ -5,6 +5,7 @@ const auth = require("./sub-auth");
|
|||||||
const cook = require("cookie")
|
const cook = require("cookie")
|
||||||
const wlog = new LogType("Web")
|
const wlog = new LogType("Web")
|
||||||
const subplayer = require('./sub-player');
|
const subplayer = require('./sub-player');
|
||||||
|
const cors = require("cors")
|
||||||
|
|
||||||
const { List } = require("./sub-list")
|
const { List } = require("./sub-list")
|
||||||
const subplaylist = require("./sub-playlist")
|
const subplaylist = require("./sub-playlist")
|
||||||
@ -61,6 +62,9 @@ function init() {
|
|||||||
app.use(express.urlencoded({ extended: false }));
|
app.use(express.urlencoded({ extended: false }));
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(express.static(__web.PUBLIC));
|
app.use(express.static(__web.PUBLIC));
|
||||||
|
app.use(cors({
|
||||||
|
origin: 'chrome-extension://fplckpgomdhnfhhokenalnpkmifabbja'
|
||||||
|
}));
|
||||||
app.set('port', port);
|
app.set('port', port);
|
||||||
app.use('/', indexRouter);
|
app.use('/', indexRouter);
|
||||||
app.use('/login', loginRouter);
|
app.use('/login', loginRouter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user