remove cors

This commit is contained in:
CounterFire2023 2023-06-25 13:20:46 +08:00
parent ded16ac57b
commit ba7180e296

View File

@ -37,7 +37,7 @@ export class ApiServer {
this.server.register(require('@fastify/formbody'))
this.server.register(require('fastify-xml-body-parser'))
this.server.register(zReqParserPlugin)
this.server.register(helmet, { hidePoweredBy: false })
this.server.register(helmet, { hidePoweredBy: false, contentSecurityPolicy: false })
this.server.register(zTokenParserPlugin)
this.server.register(apiAuthPlugin, {