CSRF and authentication mild rework

This commit is contained in:
2026-08-26 15:18:04 +03:00
parent 81e126013b
commit 782ab79c42
4 changed files with 5 additions and 10 deletions
+4
View File
@@ -2,6 +2,10 @@
play.http.filters=controllers.filters.Filters
play.filters.csrf.header.bypassHeaders {
X-Requested-With = "*"
}
play.modules.enabled += "mqttClient.Module"
slick.dbs.default = {
-3
View File
@@ -7,12 +7,9 @@
GET / controllers.HomeController.index()
POST /login controllers.authentication.SessionsController.login()
# TODO: enable it later
+nocsrf
DELETE /logout controllers.authentication.SessionsController.logout()
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)
+nocsrf
POST /auctions controllers.AuctionsController.create()