Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastify cors not working at nestjs@6.0.x #1867

Closed
blueway opened this issue Mar 28, 2019 · 3 comments

Comments

@blueway
Copy link
Contributor

commented Mar 28, 2019

file: /platform-fastify/adapters/fastify-adapter.ts

 public enableCors(options: CorsOptions) {
    this.register(cors, { options });
  }

should be:

 public enableCors(options: CorsOptions) {
    this.register(cors, options );
  }

@blueway blueway changed the title fastify cors not working fastify cors not working at nestjs@6.0.x Mar 28, 2019

@kamilmysliwiec

This comment has been minimized.

Copy link
Member

commented Mar 29, 2019

Would you like to create a PR?

@blueway

This comment has been minimized.

Copy link
Contributor Author

commented Mar 30, 2019

PR #1881

@kamilmysliwiec

This comment has been minimized.

Copy link
Member

commented Mar 31, 2019

Fixed in 6.0.5 :) Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.