def METHOD_NAME(self, path, code=302):
    if request.method == 'OPTIONS':
        options_resp = current_app.make_default_options_response()
        self._set_access_control_header(options_resp)
        return options_resp
    resp = redirect(path, code=code)
    self._set_access_control_header(resp)
    return resp