Repository navigation
CORS #937
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Activity
You can! See
bucket#setMetadata. Themetadataargument accepts everything documented here.bucket.setMetadata({ cors: [ { origin: ['http://example.appspot.com'], responseHeader: ['Content-Type'], method: ['GET', 'HEAD', 'DELETE'], maxAgeSeconds: 3600 } ] }, function(err) {});
Let me know if you run into any issues.
- addedtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.
on Nov 11, 2015 @daslicht don't know if you already solved this one. But on the
imageyou're loading into the canvas, are you settingcrossOrigin = 'Anonymous'? That might help. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image@bedeoverend yeah , already solved :) Thank you very much !
Reacted by Bede Overend- added a commit that references this issue
on Nov 11, 2022 - added a commit that references this issue
on Jul 23, 2025 - added a commit that references this issue
on Feb 5, 2026 - added a commit that references this issue
on Feb 17, 2026 - added a commit that references this issue
on Mar 5, 2026
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Hi guys
Is there a way for us to set the CORS properties of the buckets via the node API? If so, are there any examples?
Thanks