Skip to content

Commit

Permalink
rem cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Oct 25, 2023
1 parent 3b2d179 commit 58b74e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions header.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func init() {

func main() {
handler.HandleRequestFn = mw.handleRequest
//handler.HandleResponseFn = mw.handleResponse
}

// handleRequest implements a simple request middleware.
Expand All @@ -44,7 +43,5 @@ func (mw *Middleware) handleRequest(req api.Request, resp api.Response) (next bo
}
// proceed to the next handler on the host.
next = true

resp.Headers().Add("Set-Cookie", "a=b; Path=/; Domain=example.com; Secure; HttpOnly; SameSite=Strict")
return
}
Binary file modified header.wasm
Binary file not shown.

0 comments on commit 58b74e2

Please sign in to comment.