def apply_caching(response):
    """
    This method applies a cookie to each response, which avoids an error in Chrome, which looks like:
      "A cookie associated with a cross-site resource at <URL> was set without the `SameSite`attribute. A f..."
    :param response:
    :return: response with cookie set to avoid issues with cross-site resources
    """
    response.headers["Set-Cookie"] = "HttpOnly;Secure;SameSite=Strict";
    return response