solved the cross origin problem