fix variable not defined due to typo

This commit is contained in:
hippoz 2020-10-05 00:20:28 +03:00
parent 48049f5add
commit c828815e8f

View file

@ -65,7 +65,7 @@ const getFileType = (filename) => {
const allowlist = ['https://files.hippoz.xyz', 'https://hippoz.xyz']
const corsOptions = {
origin: function (origin, callback) {
if (whitelist.indexOf(origin) !== -1) {
if (allowlist.indexOf(origin) !== -1) {
callback(null, true)
} else {
callback(new Error('Not allowed by CORS'))