Skip to content

Commit 5fd0e3c

Browse files
authored
Update csp.html
1 parent 86c2673 commit 5fd0e3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csp/csp.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>cos-js-sdk-v5</h1>
5656
// Domain: 'http://{Bucket}.cos.{Region}.example.com', // 前缀式
5757

5858
getAuthorization: function (options, callback) {
59-
var url = './auth-json.php?method=' + options.Method + '&pathname=' + encodeURIComponent(options.Key);
59+
var url = './auth-json.php?method=' + options.Method + '&path=' + encodeURIComponent(options.Key);
6060
var xhr = new XMLHttpRequest();
6161
xhr.open('GET', url, true);
6262
xhr.onload = function (e) {
@@ -659,4 +659,4 @@ <h1>cos-js-sdk-v5</h1>
659659
</script>
660660

661661
</body>
662-
</html>
662+
</html>

0 commit comments

Comments
 (0)