반응형
Laravel API The POST method is not supported for this route |
API 를 작업하고 Postman으로 전송해보니
The POST method is not supported for this route
에러가 발생한다.
확인해보니 validation 에러에 걸렸는데 validation 메시지 노출이 안됬다.
Postman에서 리턴되는 Body를 자동으로 파싱하는데
Accept 되지 않은 값으로 리턴되서
Laravel Get 페이지에 Post로 넘어갔지 않았을까 추측해본다.
해결방법은 Header에 Accept: application/json 추가해 준다.
반응형
'Infomation' 카테고리의 다른 글
autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated. (0) | 2023.05.10 |
---|---|
class redis not found laravel for mac (0) | 2023.03.08 |
Laravel Valet PHP-Switcher 사용중 502 Bad Gateway (0) | 2022.12.13 |
CentOS 7.9 버전 Nginx 1.23.2, PHP 8.1.13 (PHP-FPM), MariaDB 10.6 LTS 환경 구성 (1) | 2022.12.12 |
PHP Javascript urlencode 처리 관련 (0) | 2022.11.30 |