update allowlist

This commit is contained in:
hippoz 2020-10-25 12:43:37 +02:00
parent 6905d3d0a8
commit d84220b2c2

View file

@ -62,7 +62,7 @@ const getFileType = (filename) => {
return type;
};
const allowlist = ['https://files.hippoz.xyz/', 'https://hippoz.xyz/', 'https://files.hippoz.xyz', 'https://hippoz.xyz']
const allowlist = ['https://hippoz.xyz/', 'https://hippoz.xyz']
const corsOptions = {
origin: function (origin, callback) {
if (allowlist.indexOf(origin) !== -1) {