-
Currently for my application when trying to access routes (Post for example), CORS is required and it will try a so called 'pre-flight' request using the OPTIONS method. How would I approach this with this library? Maybe a @options decorator could be possible? Or is there a better approach? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Just figured out I can use: In case anyone is wondering. |
Beta Was this translation helpful? Give feedback.
-
Is there a simpler way to apply this to all API routes without adding it to every one individually? |
Beta Was this translation helpful? Give feedback.
Just figured out I can use:
@Post({ extraMethods: [HttpMethod.OPTIONS] })
In case anyone is wondering.