mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 20:27:52 +08:00
test: middleware/header
This commit is contained in:
@@ -2,8 +2,8 @@ const logger = require('../utils/logger');
|
||||
const config = require('../config');
|
||||
const headers = {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Access-Control-Allow-Headers': 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild',
|
||||
'Access-Control-Allow-Methods': 'PUT, POST, GET, DELETE, OPTIONS',
|
||||
'Access-Control-Allow-Headers': 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With',
|
||||
'Access-Control-Allow-Methods': 'GET',
|
||||
'Content-Type': 'application/xml; charset=utf-8',
|
||||
'Cache-Control': `max-age=${config.cacheExpire / 2}`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user