Submitting headless forms #8246
-
We are using Statamic as a headless CMS, with a Vue / Nuxt frontend (no antler templates etc). When posting to the statamic REST api at I'm wondering if this is just a limitation that we cant work around, or if I have missed something else. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You can either:
|
Beta Was this translation helpful? Give feedback.
-
You could add the form end point to |
Beta Was this translation helpful? Give feedback.
-
Even if you got the CSRF token, there's no such route. The API is currently read only. You'll need to post to the endpoint that the I'd add |
Beta Was this translation helpful? Give feedback.
You could add the form end point to
App\Http\Middleware\VerifyCsrfToken
's $except array?