Fixed some cors related problems.