Skip to content

Commit a1f9750

Browse files
allow next_url contain local url of ember and angular
1 parent cb0e94c commit a1f9750

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

framework/auth/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,9 @@ def validate_next_url(next_url):
12161216
:return: True if valid, False otherwise
12171217
"""
12181218

1219+
if 'localhost' in next_url:
1220+
return True
1221+
12191222
# disable external domain using `//`: the browser allows `//` as a shortcut for non-protocol specific requests
12201223
# like http:// or https:// depending on the use of SSL on the page already.
12211224
if next_url.startswith('//'):

0 commit comments

Comments
 (0)