fix variable not defined due to typo
This commit is contained in:
parent
48049f5add
commit
c828815e8f
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue