fix accepts ajax call, fix cors issue of java server