Laravel X-CSRF-Token mismatch with POSTMAN

前端 未结 4 1028
春和景丽
春和景丽 2021-01-04 02:36

I try to talk to my REST API built with Laravel. But the call with POSTMAN is rejected due to a token mismatch. I guess I need to include the CSRF token in the header. But d

4条回答
  •  囚心锁ツ
    2021-01-04 03:16

    I had this error while using a baseURL variable in my Postman environment. Turns out I was calling the site's URL without /api at the end. Sounds silly, but just to eliminate user error make sure you check that your request URL is based on:

    https:///api

    Not:

    https://

提交回复
热议问题