OPTIONS calls don't get passed to application in Jetty
retoo opened this issue · 0 comments
retoo commented
This is the same problem as in #153, but this time with Jetty instead of Tomcat. Jetty's implementation of DefaultServlet#doOptions
sets both 'Allow' and 'Date' and therefore slips through the fix in #153.
- install rack-cors gem
- configure policy, ensure it runs with webrick
- deploy app in jetty-runner / war (using jruby-rack)
- Only Allow and Date are set, rack-cors will not be called