Skip to content

DEFAULT_FORMS_ORIGIN

const DEFAULT_FORMS_ORIGIN: "https://forms.ebitex.io" = 'https://forms.ebitex.io'

Lets an ebitex form embedded in an <iframe> on this page recognise the same visitor as the page, in browsers where a frame can hold no cookie of its own.

The form frame announces itself; this answers with the page’s token, sent only to the form host’s exact origin (read from the iframe’s own src), never to * and never in a URL. What the frame sends back is a token and a consent state, which go through Visitors.adopt, so they are kept on the device only under the same rules as any other answer. A visitor who uses “forget this browser” inside the frame is forgotten here too (the suite-wide forget, which also ends the link to a person).

Nothing happens unless you call it, and a page with no ebitex iframes is unaffected. Only iframes of this page whose src is on one of the given origins are ever answered.