CSRFTokenURLProviding
public protocol CSRFTokenURLProviding
Defines a protocol which is capable of providing CSRF URL for every request URL.
-
Provides the CSRF URL for the request URL
Declaration
Swift
func csrfTokenURL(for: URL) -> URL
Parameters
for
request URL which needs CSRF token
Return Value
the URL from which the CSRF token will be requested