Comments (9)
@branchzero 请问你使用的自定义域名是什么样子的?
from qcloud-cos-client.
随便什么自定义域名都行,默认 CDN 加速域名(xxxxxxxxxx.file.myqcloud.com)和自定义 CDN 加速域名都会触发类似的问题,因为回源地址都会被填上源站域名(xxxxx.cos.ap-xxxx.myqcloud.com),所以签名无论如何得遵循源站的host来签名。@overtrue
from qcloud-cos-client.
这里的域名其实不是 CDN 域名的作用,所以不能随便填的,只能填官方允许的上传域名,其实这里是为了兼容公司内的内网专用域名而设计,所以可能文档写的不是很清楚我改一下。
from qcloud-cos-client.
@branchzero 目前对外应该只允许 xxxxx.cos.ap-xxxx.myqcloud.com
来上传,CDN 加速域名以及自定义 CDN 域名,都只有只读权限的,我先从文档上移除它。
from qcloud-cos-client.
@overtrue 因为最近xxxxx.cos.ap-guangzhou.myqcloud.com被外墙了(境外访问直接reset),没办法只能套一层CDN,然后通过CDN域来解决被墙的问题,我觉得文档上其实不需要移除,说明下只允许用在自定义源站域名而非默认 CDN 加速域名、自定义 CDN 加速域名其实就行了。
from qcloud-cos-client.
@overtrue 因为最近xxxxx.cos.ap-guangzhou.myqcloud.com被外墙了(境外访问直接reset),没办法只能套一层CDN,然后通过CDN域来解决被墙的问题,我觉得文档上其实不需要移除,说明下只允许用在自定义源站域名而非默认 CDN 加速域名、自定义 CDN 加速域名其实就行了。
自定义源站域名应该也不能用来上传吧?
from qcloud-cos-client.
我再跟客服确认一下,如果自定义源站域名可以实现的话,我来加一个实现
from qcloud-cos-client.
@branchzero 确认并自己测试过了,确实是可以使用自定义源站域名实现数据读写,不过我测试过程中没发现报签名错误,辛苦加一下我 Q 44294631 看看具体是哪一步出问题了。
from qcloud-cos-client.
Q:签名访问时,提示 Request has expired.
A:自己的问题。生成临时链接的时候,指定1s过期导致的
from qcloud-cos-client.
Related Issues (5)
- PUT Object acl 接口 400 bad Request HOT 1
- Error On ExpireTime HOT 1
- 真实环境测试 API
- php版本能否降到 7.2 或者 7.1? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qcloud-cos-client.