Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need functionality to disable automatic CSRF checking #1981

Open
kenjis opened this issue Feb 21, 2016 · 1 comment
Open

Need functionality to disable automatic CSRF checking #1981

kenjis opened this issue Feb 21, 2016 · 1 comment
Labels

Comments

@kenjis
Copy link
Contributor

kenjis commented Feb 21, 2016

If we enable automatic CSRF checking, all REST calls will fail, unless they contain a token, which is not likely.

See #1974 (comment)

How to implement it?

@kenjis
Copy link
Contributor Author

kenjis commented Feb 22, 2016

CodeIgniter's implementation:

$config['csrf_exclude_uris'] = array('api/person/add');

$config['csrf_exclude_uris'] = array(
        'api/record/[0-9]+',
        'api/title/[a-z]+'
);

https://www.codeigniter.com/user_guide/libraries/security.html#cross-site-request-forgery-csrf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants