billions-minister-2901
01/21/2025, 4:45 PMbrief-egg-61061
01/21/2025, 4:45 PMbrief-egg-61061
01/21/2025, 4:45 PMreturn_to
parameter: When initiating self-service flows (like login), you can use the ?return_to=
query parameter to specify the allowed redirect URL. 3. Match patterns: The allow list will check if the provided return_to
URL matches the allowed patterns. For example, you can allow specific subdomains or paths within a domain. Here's an example of how the allow list works: - If you allow <https://sub.domain.myapp.com/only/path>
, it will only match that specific subdomain and path. - Other redirects using <http://myapp.com|myapp.com>
will fail. - If you allow <https://anotherapp.com>
, redirects to any path on that domain will succeed. For more detailed information on configuring browser redirects and the allow list, you can refer to the [Browser redirects and flow completion](https://www.ory.sh/docs/concepts/redirects) documentation. By implementing this allow list approach, you effectively block all domains that are not explicitly permitted, enhancing the security of your application against potential redirect-based attacks.billions-minister-2901
01/21/2025, 4:45 PMbrief-egg-61061
01/21/2025, 4:45 PMbrief-egg-61061
01/21/2025, 4:45 PMbillions-minister-2901
01/21/2025, 5:16 PMbrief-egg-61061
01/21/2025, 5:16 PMbrief-egg-61061
01/21/2025, 5:16 PM