{"id":13670378,"url":"https://github.com/gogf/csrf","last_synced_at":"2025-04-23T13:31:53.876Z","repository":{"id":57532537,"uuid":"238867147","full_name":"gogf/csrf","owner":"gogf","description":"CSRF middleware for GoFrame web server.","archived":false,"fork":false,"pushed_at":"2023-05-31T01:57:08.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T09:07:23.335Z","etag":null,"topics":["csrf","gf","goframe","middleware"],"latest_commit_sha":null,"homepage":"https://goframe.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gogf.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-07T07:32:23.000Z","updated_at":"2023-05-07T04:10:59.000Z","dependencies_parsed_at":"2024-01-17T04:52:00.844Z","dependency_job_id":null,"html_url":"https://github.com/gogf/csrf","commit_stats":null,"previous_names":["gogf/gf-csrf"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fcsrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fcsrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fcsrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogf%2Fcsrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gogf","download_url":"https://codeload.github.com/gogf/csrf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223926250,"owners_count":17226432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csrf","gf","goframe","middleware"],"created_at":"2024-08-02T09:00:40.389Z","updated_at":"2024-11-10T07:32:43.132Z","avatar_url":"https://github.com/gogf.png","language":"Go","funding_links":[],"categories":["Libraries and Plugins"],"sub_categories":[],"readme":"# csrf\n\ncsrf middleware for goframe web module\n\n## How to use\n\n```go\n// v2 for gf/v2\ngo get github.com/gogf/csrf/v2\n\n// v1 for gf\ngo get github.com/gogf/csrf\n```\n\n[example](example_test.go)\n\n## Check the effect by web request(GET before POST)\n\nhttp://127.0.0.1:8199/api.v2/csrf\n\nYou can get token value(default name _csrf) in cookies\n\nYou can set the token in request with param(Router \u003c Query \u003c Body \u003c Form \u003c Custom \u003c Header)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogf%2Fcsrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgogf%2Fcsrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogf%2Fcsrf/lists"}