vue打包dist在iphone跨域问题

2023-12-25 17:55:51

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://,无需代理

文章来源:https://blog.csdn.net/a787188834/article/details/135202575
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。