Skip to content

Listening on specific port invalidate cookie domain attribute and cause loop #21

@Buco7854

Description

@Buco7854

Hello,

When listening on a different port than the default ones, it seems the port is being set with the domain in cookie domain attribute and therefore gets invalidated
I suppose it is the cause of my infinite loop

logs:

WRN Session cookie invalid
tinyauth  | 2025-01-29T03:15:23.411795005Z 2025-01-29T03:15:23Z INF Request address=172.28.0.4:43804 latency="72.751µs" method=GET path=/api/status status=200
tinyauth  | 2025-01-29T03:15:23.452173703Z 2025-01-29T03:15:23Z INF Request address=172.28.0.4:43804 latency="99.537µs" method=GET path=/apple-touch-icon.png status=200
tinyauth  | 2025-01-29T03:15:23.452195074Z 2025-01-29T03:15:23Z INF Request address=172.28.0.4:43796 latency="10.385µs" method=GET path=/favicon-16x16.png status=200
tinyauth  | 2025-01-29T03:15:34.397948244Z 2025-01-29T03:15:34Z WRN Session cookie invalid
tinyauth  | 2025-01-29T03:15:34.397974889Z 2025-01-29T03:15:34Z WRN Request address=172.28.0.4:43550 latency="75.985µs" method=GET path=/api/auth status=307
tinyauth  | 2025-01-29T03:15:34.405320449Z 2025-01-29T03:15:34Z INF Request address=172.28.0.4:43796 latency="13.883µs" method=GET path=/ status=200
tinyauth  | 2025-01-29T03:15:34.483465902Z 2025-01-29T03:15:34Z INF Request address=172.28.0.4:43796 latency="472.665µs" method=GET path=/assets/index-C2BJVWq4.js status=200
tinyauth  | 2025-01-29T03:15:34.484242384Z 2025-01-29T03:15:34Z INF Request address=172.28.0.4:43796 latency="155.467µs" method=GET path=/assets/index-Dcj4c2oZ.css status=200
tinyauth  | 2025-01-29T03:15:34.551122282Z 2025-01-29T03:15:34Z WRN Session cookie invalid
tinyauth  | 2025-01-29T03:15:34.551138677Z 2025-01-29T03:15:34Z INF Request address=172.28.0.4:43796 latency="78.082µs" method=GET path=/api/status status=200
tinyauth  | 2025-01-29T03:15:34.575596063Z 2025-01-29T03:15:34Z INF Request address=172.28.0.4:43796 latency="77.034µs" method=GET path=/apple-touch-icon.png status=200
tinyauth  | 2025-01-29T03:15:34.575732250Z 2025-01-29T03:15:34Z INF Request address=172.28.0.4:43796 latency="18.091µs" method=GET path=/favicon-16x16.png status=200
tinyauth  | 2025-01-29T03:15:42.227783797Z 2025-01-29T03:15:42Z WRN Session cookie invalid
tinyauth  | 2025-01-29T03:15:42.227805651Z 2025-01-29T03:15:42Z INF Request address=172.28.0.4:43796 latency="120.189µs" method=GET path=/api/status status=200
tinyauth  | 2025-01-29T03:15:43.063127497Z 2025/01/29 03:15:43 net/http: invalid Cookie.Domain ".example.com:27015"; dropping domain attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions