{"id":3990,"date":"2026-10-29T06:11:06","date_gmt":"2026-10-28T21:11:06","guid":{"rendered":"https:\/\/stratos-research.com\/?p=3990"},"modified":"2026-10-29T06:11:06","modified_gmt":"2026-10-28T21:11:06","slug":"%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%b5%e3%83%a0%e3%83%8d%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ab%e3%81%8a%e3%81%91","status":"publish","type":"post","link":"https:\/\/stratos-research.com\/?p=3990","title":{"rendered":"\u30d6\u30e9\u30a6\u30b6\u30d9\u30fc\u30b9\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u304a\u3051\u308bCORS\u30a8\u30e9\u30fc\u3068\u5bfe\u7b56"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u767a\u884c\u3057\u305f\u7f72\u540d\u4ed8\u304d URL \u3092\u5229\u7528\u3057\u3001CORS \u3092\u30d6\u30e9\u30a6\u30b6\u5074\u306e\u30dd\u30ea\u30b7\u30fc\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002\u6240\u6709\u6a29\u306e\u5883\u754c\u3092\u660e\u78ba\u306b\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u539f\u56e0\u306e\u7279\u5b9a\u3068\u4e0d\u8981\u306a\u4fdd\u6301\u6c7a\u5b9a\u3092\u9632\u6b62\u3057\u307e\u3059\u3002<\/p>\n<h2>CORS \u3068\u7f72\u540d\u4ed8\u304d URL \u306e\u57fa\u672c<\/h2>\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u751f\u6210\u3057\u305f\u7f72\u540d\u4ed8\u304d URL \u306b\u5bfe\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u304c\u76f4\u63a5 PUT \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308a\u307e\u3059\u3002CORS \u8a2d\u5b9a\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3059\u308b\u3060\u3051\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u8a8d\u53ef\u30ed\u30b8\u30c3\u30af\u3068\u306f\u72ec\u7acb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6240\u6709\u6a29\u3068\u5883\u754c\u306e\u5206\u96e2<\/h2>\n<ul>\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff1aID \u3068\u524a\u9664\u72b6\u614b\u3092\u7ba1\u7406<\/li>\n<li>\u30d0\u30b1\u30c3\u30c8\uff08\u30b9\u30c8\u30ec\u30fc\u30b8\uff09\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u7ba1\u7406<\/li>\n<li>\u30d6\u30e9\u30a6\u30b6\uff1a\u5fc5\u8981\u306a\u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u307f\u8a31\u53ef<\/li>\n<\/ul>\n<p>\u3053\u306e\u5206\u5272\u306b\u3088\u308a\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5931\u6557\u304c\u4fdd\u6301\u30dd\u30ea\u30b7\u30fc\u306b\u5f71\u97ff\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30ed\u30fc\u3068\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h2>\n<ol>\n<li>\u5f93\u696d\u54e1\u304c\u9818\u53ce\u66f8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u304d\u3001\u30a2\u30d7\u30ea\u306f\u8a8d\u8a3c\u5f8c\u306b <code>receipt\/{receiptID}\/original<\/code> \u3068\u3044\u3046\u30ad\u30fc\u3092\u9078\u629e\u3057\u3001\u5fc5\u8981\u306a\u6a29\u9650\u3092\u6301\u3064\u7f72\u540d\u4ed8\u304d URL \u3092\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u8981\u6c42\u3002<\/li>\n<li>\u30d6\u30e9\u30a6\u30b6\u306f\u53d6\u5f97\u3057\u305f URL \u306b\u30d5\u30a1\u30a4\u30eb\u3092\u9001\u4fe1\u3002\u30d9\u30a2\u30e9\u30fc\u30c8\u30fc\u30af\u30f3\u306f\u542b\u3081\u307e\u305b\u3093\u3002<\/li>\n<li>\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\uff08OPTIONS\uff09\u3067 CORS \u30dd\u30ea\u30b7\u30fc\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3001\u30d6\u30e9\u30a6\u30b6\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3001\u958b\u767a\u8005\u30c4\u30fc\u30eb\u306b\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>\u5931\u6557\u3057\u305f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u300c\u30b5\u30e0\u30cd\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u300d\u3068\u3044\u3046\u6c4e\u7528\u30a2\u30e9\u30fc\u30c8\u306b\u7d71\u5408\u3057\u3001\u6b21\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u9045\u5ef6\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h2>\u4fdd\u6301\u3068\u524a\u9664\u306e\u30dd\u30ea\u30b7\u30fc<\/h2>\n<p>\u4fdd\u6301\u306f\u30ac\u30d0\u30ca\u30f3\u30b9\u4e0a\u306e\u6c7a\u5b9a\u4e8b\u9805\u3067\u3042\u308a\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u30d9\u30f3\u30c0\u30fc\u3092\u9078\u3076\u524d\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u30e2\u30c7\u30eb\u5316\u3057\u307e\u3059\u3002\u5143\u306e\u30ad\u30fc\u3001\u6d3e\u751f\u30b5\u30e0\u30cd\u30a4\u30eb\u30ad\u30fc\u3001\u53d7\u4fe1\u8b58\u5225\u5b50\u3001\u4fdd\u6301\u30af\u30e9\u30b9\u3001\u691c\u8a3c\u72b6\u614b\u3092\u8a18\u9332\u3057\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u3060\u3051\u304c\u6b8b\u3063\u3066\u539f\u672c\u304c\u6d88\u3048\u308b\u3053\u3068\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u524a\u9664\u30b8\u30e7\u30d6\u306f\u3001\u691c\u8a3c\u6e08\u307f\u306e\u6d3e\u751f\u7269\u3068\u76e3\u67fb\u30a4\u30d9\u30f3\u30c8\u304c\u63c3\u3063\u3066\u521d\u3081\u3066\u5b9f\u884c\u3057\u3001\u5225\u306e\u30dd\u30ea\u30b7\u30fc\u306b\u5f93\u3063\u3066\u539f\u672c\u3068\u6d3e\u751f\u7269\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<h2>Infria \u3068\u4ed6\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u6bd4\u8f03<\/h2>\n<p>Infria \u306f REST API \u3068 Direct HTTP \u547c\u3073\u51fa\u3057\u3092\u63d0\u4f9b\u3057\u307e\u3059\u304c\u3001\u30bb\u30eb\u30d5\u30b5\u30fc\u30d3\u30b9 CORS \u8a2d\u5b9a\u3084\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u4e0d\u5909\u4fdd\u6301\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u304c\u6b20\u5982\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u53b3\u683c\u306a CORS \u3084\u4e0d\u5909\u4fdd\u6301\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f Amazon S3 \u3084 Google Cloud Storage \u306e\u5229\u7528\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>Go \u30a2\u30c3\u30d7\u30ed\u30fc\u30c0\u30fc\u3067\u306e\u8a8d\u8a3c\u5883\u754c<\/h2>\n<p>Go \u88fd\u30a2\u30c3\u30d7\u30ed\u30fc\u30c0\u30fc\u306f\u3001\u8a8d\u8a3c\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u7f72\u540d\u4ed8\u304d URL \u3092\u53d6\u5f97\u3057\u3001\u53d6\u5f97\u3057\u305f URL \u3068\u671f\u5f85\u3055\u308c\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7\u3060\u3051\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30d9\u30a2\u30e9\u30fc\u30c8\u30fc\u30af\u30f3\u306f\u542b\u3081\u305a\u3001\u539f\u672c\u306f\u975e\u516c\u958b\u306b\u4fdd\u3061\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u305f\u5f8c\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30ea\u30ea\u30fc\u30b9\u30b2\u30fc\u30c8\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h2>\n<ol>\n<li>\u30a2\u30d7\u30ea\u306f\u627f\u8a8d\u3055\u308c\u305f\u53d7\u4fe1\u30ad\u30fc\u306e URL \u306e\u307f\u3092\u4f5c\u6210\u3067\u304d\u308b\u3053\u3068\u3002<\/li>\n<li>\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u3067\u30d6\u30e9\u30a6\u30b6\u304c\u4f7f\u7528\u3059\u308b\u6b63\u78ba\u306a\u30e1\u30bd\u30c3\u30c9\u3068\u30d8\u30c3\u30c0\u30fc\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3002<\/li>\n<li>\u5931\u6557\u3057\u305f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u5b8c\u4e86\u3057\u305f\u30bd\u30fc\u30b9\u3068\u3057\u3066\u8a18\u9332\u3057\u306a\u3044\u3053\u3068\u3002<\/li>\n<li>\u4fdd\u5b58\u30b8\u30e7\u30d6\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u691c\u8a3c\u6e08\u307f\u30b5\u30e0\u30cd\u30a4\u30eb\u3068\u76e3\u67fb\u30a4\u30d9\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u307e\u3067\u539f\u672c\u306e\u524a\u9664\u3092\u62d2\u5426\u3059\u308b\u3053\u3068\u3002<\/li>\n<\/ol>\n<p>\u30b2\u30fc\u30c8\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u30ef\u30fc\u30ab\u30fc\u3068\u4fdd\u6301\u30b8\u30e7\u30d6\u3092\u505c\u6b62\u3057\u3001\u30dd\u30ea\u30b7\u30fc\u307e\u305f\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u72b6\u614b\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u6240\u6709\u6a29\u306e\u5883\u754c\u3092\u660e\u78ba\u306b\u3057\u3001\u7f72\u540d\u4ed8\u304d URL \u3068\u9069\u5207\u306a CORS \u8a2d\u5b9a\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u30d9\u30fc\u30b9\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u4f34\u3046\u30a8\u30e9\u30fc\u3092\u52b9\u679c\u7684\u306b\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"source-link\">\u5143\u8a18\u4e8b: <a href=\"https:\/\/dev.to\/thomasmoore5082\/cors-errors-during-browser-based-thumbnail-uploads-object-storage-with-go-ge\" rel=\"noopener noreferrer\">https:\/\/dev.to\/thomasmoore5082\/cors-errors-during-browser-based-thumbnail-uploads-object-storage-with-go-ge<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":3991,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_spp_pexels_query":"","_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[2],"tags":[],"class_list":["post-3990","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/stratos-research.com\/wp-content\/uploads\/2026\/10\/painted-3989-3LCoRJ.webp","_links":{"self":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts\/3990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3990"}],"version-history":[{"count":0,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts\/3990\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/media\/3991"}],"wp:attachment":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}