<p>I have a front end form submitting via ajax that was working fine.
Im now starting to see 403 exception - something craft is now forbidding.
There is no error in the response object. I have the required hidden fields.</p>
<p>Any ideas?</p>
<pre><code>{{ csrfInput() }}
{{ actionInput('entries/save-entry') }}                                               
{{ hiddenInput('sectionId', '37') }}
{{ hiddenInput('enabled', '1') }}
</code></pre>

CC BY-SA 4.0
2021-12-09T18:02:17.717Z
This controller not "public," insofar as it requires a User session with the correct privileges… are you logged in, and are your permissions set up such that you can create and public Entries in this section?
August Miller
CC BY-SA 4.0
2021-12-09T18:20:14.090Z
…that would be create and _publish_ entries. 
August Miller
CC BY-SA 4.0
2021-12-09T21:37:47.950Z
Is it a form that requires an authenticated user? If not, you should set `public $allowAnonymous = true;` on the controller
Matanya
CC BY-SA 4.0
2021-12-09T22:35:25.340Z
I was following here:https://craftcms.com/knowledge-base/entry-form which was working cos i have data being saved. But makes sense that anonymous entries require guest plugin . Docs could be crystal clear on this:)
joomkit
<ajax><frontend><saveentry>
Ajax entry save error 403
# Ajax entry save error 403

(Asked by: username_0 on 2021-12-09)

I have a front end form submitting via ajax that was working fine.
Im now starting to see 403 exception - something craft is now forbidding.
There is no error in the response object. I have the required hidden fields.
Any ideas?
{{ csrfInput() }}
{{ actionInput('entries/save-entry') }}                                               
{{ hiddenInput('sectionId', '37') }}
{{ hiddenInput('enabled', '1') }}

**Tags:** ajax, frontend, saveentry
> **Comments:**
> **username_1**: This controller not "public," insofar as it requires a User session with the correct privileges… are you logged in, and are your permissions set up such that you can create and public Entries in this section?  
> **username_1**: …that would be create and _publish_ entries.   
> **username_2**: Is it a form that requires an authenticated user? If not, you should set `public $allowAnonymous = true;` on the controller  
> **username_0**: I was following here:https://craftcms.com/knowledge-base/entry-form which was working cos i have data being saved. But makes sense that anonymous entries require guest plugin . Docs could be crystal clear on this:)  

---

## 0 answers

