robsontenorio / laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel
MIT License
434 stars 141 forks source link

Only works on GET Method ? #105

Closed raj-saroj-vst-au4 closed 9 months ago

raj-saroj-vst-au4 commented 9 months ago

for context am using Laravel 10 as backend and Nuxtjs 3.9 for frontend. Whenever i call an api using GET with authorization headers, it works but, when i call the api changing it to POST it gives error. Was it meant to be used this way or am i missing out on something ?

desod-vn commented 9 months ago

can you describe exactly problem with image, code, flow

raj-saroj-vst-au4 commented 9 months ago

Got it, was sending jwt from nuxt but i also needed to pass x-xsrf-token in the headers. Thanks, closing with this