limit cors
This commit is contained in:
parent
4ae300efb5
commit
9c82e44cca
@ -78,7 +78,13 @@ app.use(
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
app.use(morgan('combined'));
|
app.use(morgan('combined'));
|
||||||
app.use(cors());
|
|
||||||
|
const corsOptions = {
|
||||||
|
origin: ['https://alloca.space', 'https://www.alloca.space'],
|
||||||
|
optionsSuccessStatus: 200
|
||||||
|
};
|
||||||
|
|
||||||
|
app.use(cors(corsOptions));
|
||||||
|
|
||||||
// POST
|
// POST
|
||||||
const limiter20 = RateLimit({
|
const limiter20 = RateLimit({
|
||||||
|
Loading…
Reference in New Issue
Block a user