Mark Session Detection Edge Function
Updates loader sessions with adblock and ITP detection flags. Called by the client-side loader when tracking prevention is detected.
POST /mark-session-detection
None - Uses loader_token validation instead of JWT
Tables touched:
{ "loader_token": "abc12345", "client_session_id": "uuid", "adblock_detected": true, "adblock_method": "bait", "itp_detected": false, "itp_method": null} Copy
{ "loader_token": "abc12345", "client_session_id": "uuid", "adblock_detected": true, "adblock_method": "bait", "itp_detected": false, "itp_method": null}
200 - { success: true, updated: count }
400 - Missing required fields
401 - Invalid loader_token
500 - Database error
Fileoverview
Mark Session Detection Edge Function
Updates loader sessions with adblock and ITP detection flags. Called by the client-side loader when tracking prevention is detected.
Endpoint
POST /mark-session-detection
Auth
None - Uses loader_token validation instead of JWT
Remarks
Tables touched:
Example: Request body
Returns
200 - { success: true, updated: count }
Returns
400 - Missing required fields
Returns
401 - Invalid loader_token
Returns
500 - Database error