billions-minister-2901
02/26/2024, 4:07 AMchilly-king-10285
02/26/2024, 4:07 AMchilly-king-10285
02/26/2024, 4:08 AM?refresh=true
is set ([source](https://www.ory.sh/docs/kratos/reference/api)). Also, make sure you're using the correct endpoint for your application. For example, the endpoint GET /self-service/registration/api
is intended for native apps like mobile devices, smart TVs, etc., and should not be used in client-side or server-side browser applications ([source](https://www.ory.sh/docs/kratos/reference/api)). On the other hand, the endpoint GET /self-service/registration/browser
is intended for browser-based user registration flows ([source](https://www.ory.sh/docs/kratos/reference/api)). If you're still encountering issues, could you please provide more details about the problem?billions-minister-2901
02/26/2024, 4:30 AM<https://auth-ory-dev.pudgyworld.com/self-service/registration/browser?return_to=https%3A%2F%2Fprealpha-dev.pudgyworld.com%2F>
Request Method:
GET
Status Code:
400 Bad Request
Remote Address:
104.26.15.221:443
Referrer Policy:
strict-origin-when-cross-origin
Access-Control-Allow-Credentials:
true
Access-Control-Allow-Origin:
<https://auth-dev.pudgyworld.com>
Access-Control-Expose-Headers:
Cache-Control, Expires, Last-Modified, Pragma, Content-Length, Content-Language, Content-Type
Cache-Control:
private, no-cache, no-store, must-revalidate
Cf-Cache-Status:
DYNAMIC
Cf-Ray:
85b573cd6cd8225e-ORD
Content-Length:
302
Content-Type:
application/json
Date:
Mon, 26 Feb 2024 04:30:22 GMT
Nel:
{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Ory-Network-Region:
euw
Report-To:
{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=tccF%2FZ5y6yrDmNR%2BdwGCVUouc2KWG%2BBi5r%2B97W7hFfFqxW291aMTdsYlaodRQKuKdqlWM6D7i57ybK515j8eN6igUlT5EnkQvDuxKYthjwWFGwlY70BOyyyhRzfNeCps5ReQXm5TSZRXMvFO%2Fg%3D%3D"}],"group":"cf-nel","max_age":604800}
Server:
cloudflare
Vary:
Origin,Origin,Cookie
:authority:
<http://auth-ory-dev.pudgyworld.com|auth-ory-dev.pudgyworld.com>
:method:
GET
:path:
/self-service/registration/browser?return_to=https%3A%2F%2Fprealpha-dev.pudgyworld.com%2F
:scheme:
https
Accept:
application/json, text/plain, */*
Accept-Encoding:
gzip, deflate, br
Accept-Language:
en-US,en;q=0.9
Cache-Control:
no-cache
Cookie:
__cflb=0H28w3AoWiFHFXtJ5ukdCLwTAYKAFEUthkGKiQhwqX1; AMP_MKTG_fe081c1cde=JTdCJTdE; csrf_token_bee5973964f545ee07f5625b6577d9e95cc5da2bd9d731313a7d68d251afc2f5=Whphc+SqIoL5AQvhfURt3AjzB147LWhQnN3ztIXVqxY=; _cfuvid=Y_4fdRojCRAaCkDmRMXMjrDvmigxy15t2wfycfIpohg-1708921112132-0.0-604800000; AMP_fe081c1cde=JTdCJTIyZGV2aWNlSWQlMjIlM0ElMjIwOTUyNDc5NS1hMDljLTQ0MzYtOTk1ZC03MzZjNTJiYTA2YzYlMjIlMkMlMjJzZXNzaW9uSWQlMjIlM0ExNzA4OTIxMTA1MTM3JTJDJTIyb3B0T3V0JTIyJTNBZmFsc2UlMkMlMjJsYXN0RXZlbnRUaW1lJTIyJTNBMTcwODkyMTgxMDM3MiUyQyUyMmxhc3RFdmVudElkJTIyJTNBMTIlN0Q=
Origin:
<https://auth-dev.pudgyworld.com>
Pragma:
no-cache
Referer:
<https://auth-dev.pudgyworld.com/>
Sec-Ch-Ua:
"Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"Windows"
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-site
User-Agent:
Mozilla/5.0 (Windows NT 10.0;
chilly-king-10285
02/26/2024, 4:30 AMchilly-king-10285
02/26/2024, 4:30 AM?refresh=true
is set ([source](https://www.ory.sh/docs/kratos/reference/api)). Also, make sure you're using the correct endpoint for your application. For example, the endpoint GET /self-service/registration/api
is intended for native apps like mobile devices, smart TVs, etc., and should not be used in client-side or server-side browser applications ([source](https://www.ory.sh/docs/kratos/reference/api)). On the other hand, the endpoint GET /self-service/registration/browser
is intended for browser-based user registration flows ([source](https://www.ory.sh/docs/kratos/reference/api)). If you're still encountering issues, could you please provide more details about the problem?billions-minister-2901
02/26/2024, 4:32 AMchilly-king-10285
02/26/2024, 4:32 AMchilly-king-10285
02/26/2024, 4:32 AMreturn_to
URL is not on the allow list of your Ory configuration. Ory uses an allow list to prevent [Open Redirect Attacks](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html). This means that only certain domains, or paths on a domain, are allowed for redirection. To fix this issue, you need to add the return_to
domain to the allow list in your Ory configuration. Here's an example of how to do this: yaml selfservice: allowed_return_urls: - <https://www.myapp.com/>
In this example, <http://myapp.com|myapp.com>
is added to the whitelist, thus you can now specify a dynamic return url like so ?return_to=<https://www.myapp.com/blog/write>
([source](https://www.ory.sh/docs/kratos/concepts/browser-redirect-flow-completion#redirection)). Please note that it's not possible to set any Ory-owned domain as a redirect URL ([source](https://www.ory.sh/docs/concepts/redirects#domain-denied)). If you're still encountering issues, please check your Ory configuration and make sure the return_to
URL is correctly added to the allow list.billions-minister-2901
02/26/2024, 4:33 AMchilly-king-10285
02/26/2024, 4:33 AMchilly-king-10285
02/26/2024, 4:34 AMreturn_to
URL is already listed in the allow list and you're still encountering the "The return_to address is not allowed" error, there might be other factors at play. Here are a few things you could check: 1. URL Encoding: Ensure that the return_to
URL is properly URL-encoded. This is especially important if the URL contains special characters or query parameters. 2. Exact Match: The allow list requires an exact match. Make sure that the return_to
URL matches exactly with the one in the allow list, including the protocol (http or https), subdomain (if any), path, and query parameters. 3. Configuration Reload: If you've recently added the return_to
URL to the allow list, make sure that the Ory configuration has been reloaded or the service restarted to pick up the changes. 4. Check Logs: Check the Ory logs for any additional information or error messages that might help diagnose the issue. If you've checked all of these and the issue persists, it might be a good idea to reach out to the Ory community or support for further assistance.chilly-king-10285
02/26/2024, 4:48 AMchilly-king-10285
02/26/2024, 4:48 AM?refresh=true
is set ([source](https://www.ory.sh/docs/kratos/reference/api)). Also, make sure you're using the correct endpoint for your application. For example, the endpoint GET /self-service/registration/api
is intended for native apps like mobile devices, smart TVs, etc., and should not be used in client-side or server-side browser applications ([source](https://www.ory.sh/docs/kratos/reference/api)). On the other hand, the endpoint GET /self-service/registration/browser
is intended for browser-based user registration flows ([source](https://www.ory.sh/docs/kratos/reference/api)). If you're still encountering issues, could you please provide more details about the problem?