Skip to content

Commit 62004c1

Browse files
Merge pull request nestjs#1881 from blueway/master
bugfix(fastify): fix the fastify adapter cors options config
2 parents 89b2f69 + 66b13f4 commit 62004c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/platform-fastify/adapters/fastify-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class FastifyAdapter extends AbstractHttpAdapter {
104104
}
105105

106106
public enableCors(options: CorsOptions) {
107-
this.register(cors, { options });
107+
this.register(cors, options);
108108
}
109109

110110
public registerParserMiddleware() {

0 commit comments

Comments
 (0)