Skip to content

Commit 5aeb6e4

Browse files
allow angular url to be in next_url
1 parent 0e3a36c commit 5aeb6e4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

framework/auth/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
from osf import features
4040

4141

42+
ANGULAR_URL = 'localhost:4200'
43+
44+
4245
@block_bing_preview
4346
@collect_auth
4447
def reset_password_get(auth, uid=None, token=None):
@@ -1209,6 +1212,9 @@ def validate_next_url(next_url):
12091212

12101213
# disable external domain using `//`: the browser allows `//` as a shortcut for non-protocol specific requests
12111214
# 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+
12121218
if next_url.startswith('//'):
12131219
return False
12141220

0 commit comments

Comments
 (0)