Fixed CORS problems, put all urls in config