Getting an "OPTIONS" request does not return Options
Cantido opened this issue · 0 comments
Cantido commented
Describe the bug
The HTTP response to an OPTIONS request does not contain the required allow
header
To Reproduce
Steps to reproduce the behavior:
- Set up a Phoenix or Plug project
- Add a default
Liberator.Resource
, with routes to it - Submit an OPTIONS request to the server
Expected behavior
The response contains an allow
header containing the values returned from Liberator.Resource.allowed_methods/1
Additional context
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS