We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e3a36c commit 5aeb6e4Copy full SHA for 5aeb6e4
1 file changed
framework/auth/views.py
@@ -39,6 +39,9 @@
39
from osf import features
40
41
42
+ANGULAR_URL = 'localhost:4200'
43
+
44
45
@block_bing_preview
46
@collect_auth
47
def reset_password_get(auth, uid=None, token=None):
@@ -1209,6 +1212,9 @@ def validate_next_url(next_url):
1209
1212
1210
1213
# disable external domain using `//`: the browser allows `//` as a shortcut for non-protocol specific requests
1211
1214
# like http:// or https:// depending on the use of SSL on the page already.
1215
+ if ANGULAR_URL in next_url:
1216
+ return True
1217
1218
if next_url.startswith('//'):
1219
return False
1220
0 commit comments