mirror of
https://github.com/strapi/strapi.git
synced 2025-12-05 11:32:13 +00:00
Fix indent
This commit is contained in:
parent
974c748cf8
commit
2523263d5a
@ -34,7 +34,7 @@ module.exports = strapi => {
|
||||
origin: function(ctx) {
|
||||
const whitelist = strapi.config.middleware.settings.cors.origin.split(/\s*,\s*/);
|
||||
const requestOrigin = ctx.accept.headers.origin;
|
||||
if(whitelist.includes('*')){
|
||||
if (whitelist.includes('*')) {
|
||||
return '*';
|
||||
}
|
||||
if (!whitelist.includes(requestOrigin)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user