add Access-Control-Allow-Methods in config