When running lms locally the LMS hostname is https://edx.org/. We need real hostname i.e. http://localhost:8000/ for right grade back url on localhost. 
So currently we take host referrer to create right grade back url when running LTI Stub manually.