This is not a bug, but just want to create this issue so others can notice this if they are having trouble.
I was having some issue where my tests to check if preflight requests were returning the appropriate headers were not working. Eventually I figured out that because I specified
methods: [:any]
instead of
methods: :any
that "methods" were replaced by [:get]. It is documented in the README already to use ":any" OR an array.
Issue may be phrased as:
Headers not being returned
GET working but other methods not working
no preflight headers
This is not a bug, but just want to create this issue so others can notice this if they are having trouble.
I was having some issue where my tests to check if preflight requests were returning the appropriate headers were not working. Eventually I figured out that because I specified
instead of
that "methods" were replaced by [:get]. It is documented in the README already to use ":any" OR an array.
Issue may be phrased as:
Headers not being returned GET working but other methods not working no preflight headers