Salesforce Decode
Salesforcedecode
Security & SharingAdvancedConceptualsecurityopen-redirect

How do you protect against open redirects in Salesforce code?

Scenario

A Visualforce page redirects to whatever URL is in the retURL parameter.

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.