Fixing Config and cross domain probleme