Rails3.2ã§ã¯åä½ãã¦ãããCORSã®ããªãã©ã¤ãï¼HTTP OPTIONSï¼ã«å¯¾ããã«ã¼ãããRails4.1.5ã«ãããã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã¾ããã ã°ã°ãã¨ããã¤ã対å¦æ³ãè¦ã¤ãã£ãã®ã§ãããã©ããã¤ãã¤ãã ã£ãã®ã§ãèªåã§èª¿ã¹ã¦ã¿ã¾ããã Rails3.2ã§åä½ãã¦ããã«ã¼ã Rails3.2ã§ã¯ä»¥ä¸ã®ã«ã¼ãã§æ£å¸¸ã«åä½ãã¦ãã¾ããï¼ get '*all' => âsome_controller#some_action', constraints: {method: 'OPTIONS'} ãããRails4.1.5ã§åããã¨ã ActionController::RoutingError (No route matches [OPTIONS] ⦠) ã¨ããã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã¾ãã Rails4ã§ã®ã«ã¼ã Rails4ã§ã¯ get ã¡ã½ãããGETãªã¯ã¨ã¹ãããåãä»ããªã
{{#tags}}- {{label}}
{{/tags}}