-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Open
Description
Hey team, looking for help for what we can do with Devise to handle Outlook Safelinks.
From what i understand, Safelinks takes any href out of an email and transforms it into something like https://nam02.safelinks.protection.outlook.com/?url=devise_password_reset_link_here.
This means (for example password resets from devise) when clicked the referrer/origin is the safelinks URL, which currently triggers Rails CSRF and the password reset made by the user is a bad request.
I see two solutions here and trying to understand what is correct - figured other business app users are going to have the same issue.
- Disable rails CSRF on the password reset controller method - but this seems potentially dangerous?
- Check the origin and allow it if it is from safelinks?
Metadata
Metadata
Assignees
Labels
No labels