Railsã¯protect_from_forgeryã£ã¦æ¸ãã ãã§CSRF対çãæå¹ã«ãªã£ã¦ãã¸ä¾¿å©ãªããã ãã©ãã»ãã·ã§ã³ã§èªè¨¼ããããããªãã¦iOSããå¼ã¶APIã¨ãã§ãã¼ã¯ã³ä½¿ã£ã¦èªè¨¼ããå ´åã¯CSRFã®å¯¾çãããªãã®ã§ç¡å¹ã«ãããã ãã®å ´å㯠protect_from_forgery with: :null_session ã£ã¦ããã°ããããããããã¯CSRF Tokenãä¸è´ããªãã£ãå ´åã«ä¾å¤ãæããããããªãã¦ã»ãã·ã§ã³ã空ã«ããã¨ããåä½ã«ãªãã ã¡ãªã¿ã«protect_from_forgeryã®ããã©ã«ãã¯:null_sessionãªã®ã§ protect_from_forgery ã§ãããããï¼Rails 4.0.0ç¾å¨ï¼ ãã ãæåã¯ä»¥ä¸ã®ããã«ãªã£ã¦ãã®ã§æ示çã«å¤æ´ããå¿ è¦ã¯ããã class ApplicationController < ActionContr
{{#tags}}- {{label}}
{{/tags}}