playframework/play-scala-angular-seed

ADD EXAMPLE FOR POST REQUEST

mithunrajarackal opened this issue · 2 comments

You could add an example for POST request as I was having hard time adding a POST request to my app. It was mainly due to CSRF filter in the play app. I could make a POST request only after adding the following entry to the application.conf file.
disabled += play.filters.csrf.CSRFFilter
I think it's a bad way to remove such security features that are built-in to the app. So it would be better if you add an example POST request from the Angular app in the right way.

@lahiruz please add a HTTP interceptor and append the CSRF token. Apply the same updates to java project also.

@yohangz The requested change is pushed to the code base.