You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,38 @@
1
1
# kemal-csrf
2
2
3
+
> **⚠️ DEPRECATED: This project has been moved to [kemal-session](https://github.com/kemalcr/kemal-session) and is no longer maintained as a separate package. Please use kemal-session for CSRF protection.**
4
+
3
5
Adds CSRF protection to your [Kemal](http://kemalcr.com) application.
4
6
5
7
Requires a session middleware to be initialized first.
6
8
7
9
## Installation
8
10
11
+
> **Note: This package is deprecated. Please use [kemal-session](https://github.com/kemalcr/kemal-session) instead, which now includes CSRF protection functionality.**
9
12
10
-
Add this to your application's `shard.yml`:
13
+
For historical reference, this package was previously installed by adding to your application's `shard.yml`:
11
14
12
15
```yaml
13
16
dependencies:
14
17
kemal-csrf:
15
18
github: kemalcr/kemal-csrf
16
19
```
17
20
21
+
**For new projects, use kemal-session:**
22
+
23
+
```yaml
24
+
dependencies:
25
+
kemal-session:
26
+
github: kemalcr/kemal-session
27
+
```
28
+
18
29
19
30
## Usage
20
31
32
+
> **Important: This package is deprecated. For current CSRF protection, please refer to the [kemal-session documentation](https://github.com/kemalcr/kemal-session).**
0 commit comments