I tried to send data to backend(Playframework ). Csrf filter is blocking my request from fronted (angular). How can I disable it? this warn came in backend - [warn] p.filters.CSRF - [CSRF] Check failed because text/plain for request /api/add-books
+nocsrf
POST /api/add-book controllers.HomeController.addBooks()
enter image description here enter image description here
I tried these-
play.filters.desabled += play.filters.hosts.AllowedHostsFilter
play.filters.desabled += "play.filters.csrf.CSRFFilter"
But the problem is still there