From f3e360b122beb9139c77fee2da2669524eb20ae7 Mon Sep 17 00:00:00 2001 From: Oooocean <41802399@qq.com> Date: Wed, 31 Aug 2022 19:34:36 +0800 Subject: [PATCH] Update iOSOptimization.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改跨域说明 --- Design/iOSOptimization.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Design/iOSOptimization.md b/Design/iOSOptimization.md index 4a338dd..25063c0 100644 --- a/Design/iOSOptimization.md +++ b/Design/iOSOptimization.md @@ -61,16 +61,8 @@ iOS端小游戏高性能模式适用于遇到iOS环境运行性能不足,运 2. 使用高性能模式下,游戏本身是否需要做修改? - 业务代码无需做任何调整,普通模式与高性能模式可以无缝切换。 - - 请检查https的证书是否合法,比如通过在线工具https://myssl.com/ssl.html - 高性能模式下,请不要服务端设置Cookie,游戏端内因为跨域问题会读取不到Cookie - - 资源跨域问题:服务器添加 Access-Control 标头,以允许 Unity WebGL 从任何源点访问 Web 服务器上的资源,包括常见的响应头,并允许 GET、POST 或 OPTIONS 方法: -```json -"Access-Control-Allow-Credentials": "true", -"Access-Control-Expose-Headers": "Content-Length, Content-Encoding", -"Access-Control-Allow-Headers": "Accept, X-Access-Token, X-Application-Name, X-Request-Sent-Time, Content-Type", -"Access-Control-Allow-Methods": "GET, POST, OPTIONS", -"Access-Control-Allow-Origin": "*", -``` + - Android下载资源无问题,高性能模式提示资源下载失败等网络问题,请参考文档[网络通信适配](UsingNetworking.md#注意事项)关于跨域的问题 Q: iOS报错提示未开启gzip/br压缩 -- GitLab