POSTã«ã®ã¿ã¬ã¹ãã³ã¹ããAPIãµã¼ãã¼ãæ¸ããã®ã§ããªãã¼ã¹ãããã·ã«ãªã£ã¦ããNginxã« POST以å¤ã®ã¢ã¯ã»ã¹ãæå¦ããè¨å®ãæ¸ãã¦ãããã¨æãç«ã£ãã®ãçµç·¯ã æ¢ãã¦ããªããªãè¦å½ãããªãã£ãï¼å ¬å¼ã«ã¯æ¸ãã¦ãã£ããã©ï¼ã®ã§ãã¡ã¢ã¡ã¢ã Ex. POST以å¤ãæå¦ if ($request_method !~ ^(POST)$ ) { return 405; } è¤æ°æå®ããå ´åã¯ä»¥ä¸ Ex. GET/POSTã許容 if ($request_method !~ ^(GET|POST)$ ) { return 405; } éã«ä¸åã ãæå¦ãã¨ãã¯ä»¥ä¸ Ex. DELETEã®ã¿æå¦ if ($request_method ~ ^(DELETE)$ ) { return 405; } ä»å㯠405 Method Not Allowed ãè¿ãããã©ã444 No Respons
{{#tags}}- {{label}}
{{/tags}}