mysql - CakePHP 3 Post Method '403 Forbidden' -


i came across strange issue today , couldn't find solution. using cakephp 3 along mysql , apache. working perfect until today when tried edit 1 of forum post, didn't save , got 403 forbidden response. following response got:

request url:https://www.example.com/users/edit/2 request method: post status code:403 forbidden 

the strange part is working fine when try create new forum post get request when load edit page. when modify fields , try save, stuck 403 forbidden.

i tried every mean in last 6 hours not find solution. checked database user edit permissions, tried remove .htaccess file completely, cleared browser cache , cookies nothing helped @ all. other websites in hosting account working fine , there no issue them.

the notable thing did today initialized git repository , uploaded project files on git. appreciate in solving issue. constant headache not able modify anything.

just future reference, solved issue explicitly defining request type post in $this->form->create function.

it 1 of strangest error came across while using cakephp 3! not sure why default put method not working. converting get.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -