mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Remove log
This commit is contained in:
parent
4f80859f9e
commit
54402d6cef
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,6 @@ const whitelist = ["https://skins.webamp.org", "http://localhost:3000"];
|
|||
const corsOptions = {
|
||||
origin: function (origin, callback) {
|
||||
if (whitelist.indexOf(origin) !== -1 || !origin) {
|
||||
console.log("okay");
|
||||
callback(null, true);
|
||||
} else {
|
||||
callback(new Error("Not allowed by CORS"));
|
||||
|
|
@ -27,6 +26,8 @@ const corsOptions = {
|
|||
|
||||
app.use(cors(corsOptions));
|
||||
|
||||
app.options("*", cors(corsOptions));
|
||||
|
||||
// TODO: Look into 766c4fad9088037ab4839b18292be8b1
|
||||
// Has huge number of filenames in info.json
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue