fix: CORS not same origin
This commit is contained in:
@@ -45,7 +45,9 @@ app.use((req, res, next) => {
|
||||
app.use(bodyParser.urlencoded({ extended: true, limit: '50mb' }));
|
||||
app.use(bodyParser.json({ limit: '50mb' }));
|
||||
app.use(morgan('dev'));
|
||||
app.use(helmet());
|
||||
app.use(helmet({
|
||||
crossOriginResourcePolicy: false
|
||||
}));
|
||||
app.use(compression());
|
||||
app.use(cors({
|
||||
origin: '*',
|
||||
|
||||
Reference in New Issue
Block a user