Skip to main content

Troubleshooting

Validation and error states

When the iframe loads, it validates the token and origin against the Heuristik API:

Error codes

HTTP CodeConstantMeaning
401UNAUTHORIZED_CODEToken is invalid
403Origin does not match the registered URL
409CONFLICT_CODEToken is already associated with an active session
421MISDIRECTED_CODERequest was directed to the wrong server
424FAILED_DEPENDENCY_CODEA required upstream service is unavailable

When validation fails, the iframe displays the NotAllowedIframeModal with an error message. No postMessage is sent to the parent.

Common issues

SymptomCauseResolution
Iframe shows error modal immediatelyInvalid tokenIframeContact your Heuristik representative to verify the token
Iframe shows error modal on valid tokenOrigin mismatch — your URL doesn't match the registered URLVerify with your Heuristik representative that the allowed URL matches your domain exactly
Cookie warning appearsThird-party cookies are blockedEnable cookies for iframe.heuristik.com in browser settings
Scanner not detectedLocal driver not runningStart the local driver service on the workstation
Scanner not detected (driver running)WebSocket connection blockedEnsure ws://127.0.0.1:2794 is not blocked by firewall or proxy
No postMessage receivedOrigin validation in listener is wrongVerify you check against https://iframe.heuristik.com
409 Conflict errorToken already in use by another sessionWait for the active session to end, or contact your Heuristik representative to release the token