vapor-community / CSRF

A package to add protection to Vapor against CSRF attacks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSRF constructor is internal

Igor-Palaguta opened this issue · comments

There is no way to create CSRF instance as init is internal

https://github.com/vapor-community/CSRF/blob/master/Sources/CSRF.swift#L20

Thanks! I released a patch fixing this.

Thanks,

Can you please make all HTTPMethod's (.GET) also public

https://github.com/vapor-community/CSRF/blob/master/Sources/CSRF.swift#L156

Yes, of course. Sorry for that oversight.

Here is a release with that patch.

Cool! Thanks!