Skip to content

Commit

Permalink
server/tailsql: update session cookie settings
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Aug 13, 2023
1 parent c9dd811 commit f851c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TailSQL

http://tailsql-dev?q=meta:named

TailSQL is a self-contained SQL playground service that runs on [Tailscale](https://tailscale.com).
It permits users to query SQL databases from a basic web-based UI, with support for any database
that can plug in to the Go [`database/sql`](https://godoc.org/database/sql) package.
Expand Down
2 changes: 1 addition & 1 deletion server/tailsql/tailsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const noBrowsersHeader = "Sec-Tailsql"
// siteAccessCookie is a cookie that must be presented with any request from a
// browser that includes a query, and does not have the noBrowsersHeader.
var siteAccessCookie = &http.Cookie{
Name: "tailsqlQuery", Value: "1", SameSite: http.SameSiteStrictMode, HttpOnly: true,
Name: "tailsqlQuery", Value: "1", SameSite: http.SameSiteLaxMode, HttpOnly: true,
}

func requestHasSiteAccess(r *http.Request) bool {
Expand Down

0 comments on commit f851c76

Please sign in to comment.