{"id":20330059,"url":"https://github.com/redapesolutions/angular-django-csrf","last_synced_at":"2025-06-10T08:04:55.092Z","repository":{"id":20183307,"uuid":"23454333","full_name":"redapesolutions/angular-django-csrf","owner":"redapesolutions","description":"Angular $http interceptor that adds CSRF token for Django","archived":false,"fork":false,"pushed_at":"2016-12-04T00:47:52.000Z","size":6,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-04T20:40:19.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/redapesolutions.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}},"created_at":"2014-08-29T06:06:07.000Z","updated_at":"2016-12-04T00:44:00.000Z","dependencies_parsed_at":"2022-07-21T07:33:15.417Z","dependency_job_id":null,"html_url":"https://github.com/redapesolutions/angular-django-csrf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2Fangular-django-csrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2Fangular-django-csrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2Fangular-django-csrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2Fangular-django-csrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redapesolutions","download_url":"https://codeload.github.com/redapesolutions/angular-django-csrf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2Fangular-django-csrf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259033827,"owners_count":22795769,"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":[],"created_at":"2024-11-14T20:14:47.342Z","updated_at":"2025-06-10T08:04:55.071Z","avatar_url":"https://github.com/redapesolutions.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-django-csrf\n\u003e creates an AngularJS [$http interceptor](https://docs.angularjs.org/api/ng/service/$http#interceptors) which adds the [CSRF](https://docs.djangoproject.com/en/dev/ref/csrf/) token for Django use\n\n## Install\n```sh\n$ bower install angular-django-csrf\n```\n\n## Usage\n- Make sure the `angular-django-csrf.js` file is added to your `index.html`\n- Add the `angularDjangoCsrf` module to the list of your app dependencies\n- Ensure that you have `ngCookies` loaded in your app as well\n\n\nAdd a `\u003cscript\u003e` to your `index.html`:\n\n```html\n\u003cscript src=\"/bower_components/angular-cookies/angular-cookies.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/bower_components/angular-django-csrf/angular-django-csrf.js\"\u003e\u003c/script\u003e\n```\n\nAnd add `angularDjangoCsrf` as a dependency for your app:\n\n```js\nangular.module('myApp', ['ngCookies', 'angularDjangoCsrf']);\n```\n\n## Dependencies\n[`ngCookies`](https://docs.angularjs.org/api/ngCookies) is a required dependency of this module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredapesolutions%2Fangular-django-csrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredapesolutions%2Fangular-django-csrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredapesolutions%2Fangular-django-csrf/lists"}