domain_match(String, DomainString) -> boolean() String :: binary() DomainString :: binary()
gun_cookies:domain_match - Cookie domain match
domain_match(String, DomainString) -> boolean() String :: binary() DomainString :: binary()
Cookie domain match.
This function can be used when implementing the set_cookie_secure_match callback of a cookie store.
The string to match.
The domain string that will be matched against.
Returns true when String domain-matches DomainString, and false otherwise.
Match = gun_cookies:domain_match(Domain, CookieDomain).
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.