vue打包dist在iphone跨域问题

WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
        config.preferences = [[WKPreferences alloc] init];
        config.preferences.minimumFontSize = 10;
        config.preferences.javaScriptEnabled = YES;
        config.preferences.javaScriptCanOpenWindowsAutomatically = YES;
        config.userContentController = [[WKUserContentController alloc] init];
        config.processPool = [[WKProcessPool alloc] init];
        config.userContentController = [WKUserContentController new];
        [config setValue:@"TRUE" forKey:@"allowUniversalAccessFromFileURLs"];

vue的请求路径直接用http://,无需代理

你可能感兴趣的:(vue.js,iphone,前端)