Use http/https scheme from browser, to fix same origin problem.