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:
copilot-swe-agent[bot] 2026-04-25 06:57:53 +00:00 committed by GitHub
parent 173c6cb234
commit d25340a857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,6 +151,8 @@ class Application {
private setupMiddlewares() {
this.app.use(helmet({
contentSecurityPolicy: false,
crossOriginOpenerPolicy: false,
originAgentCluster: false,
}));
this.app.use(cors(config.cors));
this.app.use(compression());