From ddbfd57623be4d9337aaa6ac0c0b3784e72b28aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Myr=C3=A9n?= <danmy683@student.liu.se>
Date: Thu, 2 May 2024 10:23:36 +0000
Subject: [PATCH] Update README.md

---
 backend/README.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/backend/README.md b/backend/README.md
index 347de76..2b8ffd4 100644
--- a/backend/README.md
+++ b/backend/README.md
@@ -54,4 +54,21 @@ https://docs.sqlalchemy.org/en/20/changelog/migration_20.html#migration-20-query
         // Redirect user to another page upon successful login
   
     };
+```
+
+```python
+
+# Create Flask app
+app = Flask(__name__)
+
+# Enable CSRF on all api endpoints
+csrf = CSRFProtect(app)
+
+# Define Content Security Policies
+talisman = Talisman(app, content_security_policy=csp)
+
+# Initialize Flask-Security
+user_datastore = SQLAlchemyUserDatastore(db, User, Role)
+app.security = Security(app, user_datastore)
+
 ```
\ No newline at end of file
-- 
GitLab