mirror of
https://github.com/whyour/qinglong.git
synced 2026-04-29 00:45:11 +08:00
fix: disable COOP and Origin-Agent-Cluster headers to fix blank page on HTTP
Agent-Logs-Url: https://github.com/whyour/qinglong/sessions/71ccc655-4ea0-4735-9e7c-9230000e08d5 Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
173c6cb234
commit
d25340a857
|
|
@ -151,6 +151,8 @@ class Application {
|
||||||
private setupMiddlewares() {
|
private setupMiddlewares() {
|
||||||
this.app.use(helmet({
|
this.app.use(helmet({
|
||||||
contentSecurityPolicy: false,
|
contentSecurityPolicy: false,
|
||||||
|
crossOriginOpenerPolicy: false,
|
||||||
|
originAgentCluster: false,
|
||||||
}));
|
}));
|
||||||
this.app.use(cors(config.cors));
|
this.app.use(cors(config.cors));
|
||||||
this.app.use(compression());
|
this.app.use(compression());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user