jruby/jruby-rack

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.

  1. install rack-cors gem
  2. configure policy, ensure it runs with webrick
  3. deploy app in jetty-runner / war (using jruby-rack)
  4. Only Allow and Date are set, rack-cors will not be called