diff --git a/lms/static/js/student_account/utils.js b/lms/static/js/student_account/utils.js index 4c2ac49da8..fb539b658c 100644 --- a/lms/static/js/student_account/utils.js +++ b/lms/static/js/student_account/utils.js @@ -9,11 +9,12 @@ userFromEdxUserCookie: function() { var hostname = this.getHostname(); var isLocalhost = hostname.indexOf('localhost') >= 0; + var isSandbox = hostname.indexOf('sandbox') >=0; var isStage = hostname.indexOf('stage') >= 0; var isEdge = hostname.indexOf('edge') >= 0; var cookie, edxUserCookie, prefix, user, userCookie; - if (isLocalhost) { + if (isLocalhost || isSandbox) { // localhost doesn't have prefixes edxUserCookie = 'edx-user-info'; } else {