sqlpage / SQLPage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.57k stars 89 forks source link

max_age property of the cookie component is not respected #501

Closed lovasoa closed 2 months ago

lovasoa commented 2 months ago

Here are response header :

HTTP/1.1 302 Found
content-length: 0
set-cookie: session=stFQ86rHXM3WaR6NLzw3N17pEYVx5Cae; HttpOnly; SameSite=Strict; Path=/
location: admin.sql
content-security-policy: script-src 'self' https://cdn.jsdelivr.net
content-type: text/html; charset=utf-8
server: sqlpage v0.24.0
date: Fri, 12 Jul 2024 19:53:46 GMT

image

Originally posted by @anayrat in https://github.com/lovasoa/SQLpage/discussions/498#discussioncomment-10035358

lovasoa commented 2 months ago

Reproduction:


select 'cookie' AS component,
    'session' AS name,
    'xxx' AS value,
    3600 AS max_age;