Skip to content

Instantly share code, notes, and snippets.

const API_URL = 'https://app.posthog.com/';
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Max-Age': '86400',
};
const ORIGIN = new URL(API_URL).origin