{"id":178,"date":"2015-06-27T07:47:15","date_gmt":"2015-06-26T22:47:15","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2015\/06\/27\/opsworks_nginx_cors"},"modified":"2022-10-26T10:04:56","modified_gmt":"2022-10-26T01:04:56","slug":"opsworks_nginx_cors","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2015\/06\/27\/opsworks_nginx_cors\/","title":{"rendered":"AWS OpsWorks \u306e nginx \u306e CORS \u5bfe\u5fdc\u3067\u30cf\u30de\u3063\u305f"},"content":{"rendered":"

AngularJS \u3067\u4f5c\u3063\u305f SPA(Single-page application) \u304b\u3089\u3001Ruby on Rails \u3067\u4f5c\u3063\u305f API \u3068\u60c5\u5831\u3092\u3084\u308a\u3068\u308a\u3059\u308b\u305f\u3081\u3001CORS(Cross-Origin Resource Sharing) \u5bfe\u5fdc\u304c\u5fc5\u8981\u306b\u306a\u308a\u3001AWS \u306e OpsWorks \u306e nginx \u306e\u30ec\u30b7\u30d4\u3092\u4fee\u6b63\u3057\u3066\u30cf\u30de\u3063\u305f\u8a71\u3002<\/p>\n

CORS(Cross-Origin Resource Sharing) \u3068\u306f<\/h2>\n

\u30d6\u30e9\u30a6\u30b6\u3067 Ajax \u901a\u4fe1\u3092\u884c\u3046\u5834\u5408\u3001\u540c\u4e00\u751f\u6210\u5143\u30dd\u30ea\u30b7\u30fc<\/a>(Same Origin Policy)\u306b\u3088\u3063\u3066\u3001\u30da\u30fc\u30b8\u306e\u751f\u6210\u5143\u306e\u30c9\u30e1\u30a4\u30f3\u4ee5\u5916\u306e\u30c9\u30e1\u30a4\u30f3\u3078\u306e HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3067\u304d\u306a\u3044\u3002
\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u30c9\u30e1\u30a4\u30f3A(
http:\/\/domaina.com<\/a>) \u3067\u8aad\u307f\u8fbc\u3093\u3060 HTML \u304b\u3089\u3001\u30c9\u30e1\u30a4\u30f3B(http:\/\/domainb.jp<\/a>) \u3078\u306e Ajax \u901a\u4fe1\u306f\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3002
\u901a\u4fe1\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4f8b\u3048\u3070\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002<\/p>\n

XMLHttpRequest cannot load http:\/\/domainb.jp\/api\/v1\/addresses?postal_code=3120003. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http:\/\/domaina.com' is therefore not allowed access.<\/code><\/pre>\n

\u30c9\u30e1\u30a4\u30f3\u304c\u7570\u306a\u308b HTTP \u30ea\u30af\u30a8\u30b9\u30c8(\u30af\u30ed\u30b9\u30b5\u30a4\u30c8 HTTP \u30ea\u30af\u30a8\u30b9\u30c8)\u3092\u5b89\u5168\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u4f5c\u3089\u308c\u305f\u306e\u304c\u3001CORS \u3067\u3042\u308b\u3002
CORS \u3068\u306f Cross-Origin Resource Sharing \u306e\u7565\u3067\u3001
2014\u5e741\u6708\u306b W3C \u52e7\u544a<\/a>\u3068\u306a\u3063\u305f\u4ed5\u69d8\u3067\u3042\u308b\u3002 <\/p>\n

AWS OpsWorks \u306e nginx \u30ec\u30b7\u30d4\u3092\u4fee\u6b63<\/h2>\n

\u3053\u306e CORS \u5bfe\u5fdc\u3059\u308b\u305f\u3081\u3001API \u5074\u306e nginx \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002
\u203b \u672c\u756a\u74b0\u5883\u3067\u306f\u3001\u540c\u4e00\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u306a\u308b\u305f\u3081\u3001\u3053\u306e\u8a2d\u5b9a\u306f\u5fc5\u8981\u306a\u304f\u306a\u308b\u304c\u3001\u958b\u767a\u74b0\u5883\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u958b\u767a\u74b0\u5883\u304b\u3089\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u306e API \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u3002 <\/p>\n

API \u30b5\u30fc\u30d0\u30fc\u306f\u3001AWS \u306e OpsWorks \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001 aws\/opsworks-cookbooks<\/a> \u3092\u5909\u66f4\u3057\u3066\u3001\u30ab\u30b9\u30bf\u30e0\u30ec\u30b7\u30d4\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002 <\/p>\n

\u4f55\u304b\u53c2\u8003\u306b\u3067\u304d\u308b\u3082\u306e\u306f\u306a\u3044\u304b\u3068\u3001\u30b0\u30b0\u3063\u3066\u307f\u305f\u3089 \u3053\u3061\u3089<\/a> \u304c\u826f\u3055\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u3092\u53c2\u8003\u306b\u3057\u3064\u3064\u3001\u524d\u306b\u5225\u306e\u6848\u4ef6\u3067\u4f7f\u3063\u305f\u8a2d\u5b9a\u3068\u5408\u308f\u305b\u3066\u78ba\u8a8d\u3057\u306a\u304c\u3089\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n

\u30b7\u30f3\u30d7\u30eb\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8<\/h2>\n

\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u969b\u306b\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c GET \u3082\u3057\u304f\u306f POST \u306e\u5834\u5408<\/strong>(\u30b7\u30f3\u30d7\u30eb\u306a\u30ea\u30af\u30a8\u30b9\u30c8)\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c OPTIONS \u306e\u5834\u5408<\/strong>(\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8)\u3068\u3092\u5206\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n

\u30b7\u30f3\u30d7\u30eb\u306a\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306f<\/h3>\n

\u30b7\u30f3\u30d7\u30eb\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306f\u3001GET \u307e\u305f\u306f POST \u306e\u307f\u7528\u3044\u308b\u3002
POST \u3092\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30c7\u30fc\u30bf\u9001\u4fe1\u306b\u5229\u7528\u3059\u308b\u5834\u5408\u3001HTTP POST \u3067\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308b\u30c7\u30fc\u30bf\u306e Content-Type \u306f application\/x-www-form-urlencoded\u3001multipart\/form-data\u3001\u307e\u305f\u306f text\/plain \u306e\u3044\u305a\u308c\u304b\u3068\u306a\u308b\u3002
\n\u4f8b\u3048\u3070\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30a2\u30af\u30bb\u30b9\u3092
http:\/\/domaina.com<\/a> \u304b\u3089\u3060\u3051\u306b\u5236\u9650\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b Access-Control-Allow-Origin: \u30d8\u30c3\u30c0\u30fc \u3092\u8fd4\u3059\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n

Access-Control-Allow-Origin: http:\/\/domaina.com<\/a><\/p>\n

\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306f<\/h3>\n

\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306f\u3001\u4e0a\u8a18\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u4ee5\u5916\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3002
\u30b7\u30f3\u30d7\u30eb\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u9055\u3044\u3001\u59cb\u3081\u306b\u5b9f\u969b\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3066\u3082\u5b89\u5168\u304b\u3092\u78ba\u304b\u3081\u308b\u305f\u3081\u306b\u3001\u4ed6\u30c9\u30e1\u30a4\u30f3\u3078\u5411\u3051\u3066 HTTP \u306e OPTIONS \u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u3092\u9001\u4fe1\u3059\u308b\u3002<\/p>\n

\u4e0a\u8a18\u3092\u8e0f\u307e\u3048\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u306f\u3001HTTP \u30e1\u30bd\u30c3\u30c9\u304c OPTIONS \u304b\u3001 GET\u3084POST \u304b<\/strong> \u3092\u5224\u5225\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n

if \u6587\u304c\u3046\u307e\u304f\u52d5\u3044\u3066\u306a\u3044\uff1f\uff1f<\/h2>\n

\u306f\u3058\u3081\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u305f\u3002
location @unicorn<\/code> \u306e\u90e8\u5206\u3067 $request_method<\/code> \u3067\u5224\u5225\u3057\u3066\u3001OPTIONS \u3060\u3063\u305f\u3089\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u7528\u306e\u8a2d\u5b9a\u3092\u3001GET(POST) \u3060\u3063\u305f\u3089\u30b7\u30f3\u30d7\u30eb\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u7528\u306e\u30d8\u30c3\u30c0\u30fc\u306e\u8a2d\u5b9a\u3092\u4ed8\u4e0e\u3059\u308b\u3001\u3068\u3044\u3046\u3082\u306e\u3002<\/p>\n

location @unicorn {\n  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n  proxy_set_header Host $http_host;\n  proxy_redirect off;\n\n  if ($request_method = 'OPTIONS') {\n    add_header 'Access-Control-Allow-Origin' "*";\n    add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since';\n    add_header 'Content-Length' 0;\n    add_header 'Content-Type' 'text\/plain charset=UTF-8';\n    return 204;\n  }\n\n  if ($request_method = 'GET') {\n    add_header 'Access-Control-Allow-Origin' "*";\n    add_header 'Access-Control-Allow-Credentials' 'true';\n    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';\n    add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';\n  }\n\n  if ($request_method = 'POST') {\n    ...\n    ...\n  }  \n  (\u7565)\n\n  # If you don't find the filename in the static files\n  # Then request it from the unicorn server\n  if (!-f $request_filename) {\n    proxy_pass http:\/\/unicorn_<%= @application[:domains].first %>;\n    break;\n  }\n}<\/code><\/pre>\n

\u3053\u308c\u304c\u306a\u305c\u304b\u3046\u307e\u304f\u52d5\u304b\u306a\u304b\u3063\u305f\u3002
if \u6587\u306e\u6761\u4ef6\u306b\u3069\u3053\u306b\u3082\u5408\u81f4\u305b\u305a\u306b\u3001\u30d8\u30c3\u30c0\u30fc\u306b\u8a2d\u5b9a\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u72b6\u6cc1\u3060\u3063\u305f\u3002
$request_method<\/code> \u306b\u3001\u5024\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u304b\u3068\u601d\u3044\u3001\u30c7\u30d0\u30c3\u30b0\u306e\u305f\u3081\u4e0b\u8a18\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u3066\u307f\u3066\u78ba\u304b\u3081\u3066\u307f\u305f\u3082\u306e\u306e\u3001<\/p>\n

add_header 'X-request-method' '$request_method';`<\/code><\/pre>\n

\"\"<\/p>\n

\u3057\u3063\u304b\u308a GET \u3068\u5165\u3063\u3066\u3044\u3066\u2026\u2026\u3002
\u5207\u308a\u5206\u3051\u306e\u305f\u3081\u306b\u3001if \u6587\u3092\u53d6\u308a\u9664\u3044\u3066\u307f\u305f\u3089\u3061\u3083\u3093\u3068\u30d8\u30c3\u30c0\u30fc\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u3055\u308c\u3066\u3044\u3066\u2026\u2026\u3002
\u305d\u3082\u305d\u3082 if \u6587\u81ea\u4f53\u304c\u4f7f\u3048\u306a\u3044\uff1f \u3063\u3066\u601d\u3063\u305f\u3051\u3069\u3001\u3082\u3068\u3082\u3068\u306e OpsWorks \u306e\u30ec\u30b7\u30d4\u306b\u306f\u3057\u3063\u304b\u308a if \u6587\u304c\u5165\u3063\u3066\u3044\u308b\u3057\u3001if (!-f $request_filename) <\/code> \u306e\u90e8\u5206\u306f\u3061\u3083\u3093\u3068\u52d5\u3044\u3066\u3044\u308b\u3057\u2026\u2026\u3002
\u3058\u3083\u3042\u3001\u5fc5\u305a\u901a\u308b\u306f\u305a\u306e if \u6587\u3092\u66f8\u3044\u3066\u307f\u3066\u5207\u308a\u5206\u3051\u3057\u3066\u307f\u3088\u3046\uff01\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u3082\u306e\u306e\u3001\u306a\u305c\u304b\u8a2d\u5b9a\u3055\u308c\u305a\u2026\u2026\u3002
\u30fd(\uff40\u0414\u00b4#)\uff89 \uff91\uff77\uff70!!<\/p>\n

\u6700\u7d42\u7684\u306b\u3053\u3046\u306a\u3063\u305f<\/h2>\n

\u3044\u308d\u3044\u308d\u3068\u8a66\u884c\u932f\u8aa4\u3057\u305f\u7d50\u679c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3067\u3044\u3051\u305f\u3002
location @unicorn<\/code> \u3067\u8a2d\u5b9a\u3059\u308b\u524d\u306e\u3001location \/<\/code> \u306e\u90e8\u5206\u3067\u5224\u5225\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u305f\u3002<\/p>\n

location \/ {\n  <% if node['nginx']['enable_cors'] -%>\n  if ( $request_method = OPTIONS ) {\n    add_header 'Access-Control-Allow-Origin' "*";\n    add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since';\n\n    add_header 'Content-Length' 0;\n    add_header 'Content-Type' 'text\/plain charset=UTF-8';\n    return 204;\n  }\n  <% end -%>\n  try_files $uri\/index.html $uri\/index.htm @unicorn;\n}\n\nlocation @unicorn {\n  <% if node['nginx']['enable_cors'] -%>\n  add_header 'Access-Control-Allow-Origin' "*";\n  add_header 'Access-Control-Allow-Credentials' 'true';\n  add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';\n  add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';\n  <% end -%>\n  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n  proxy_set_header Host $http_host;\n  proxy_redirect off;\n\n<% if node[:nginx] && node[:nginx][:proxy_read_timeout] -%>\n  proxy_read_timeout <%= node[:nginx][:proxy_read_timeout] %>;\n<% end -%>\n<% if node[:nginx] && node[:nginx][:proxy_send_timeout] -%>\n  proxy_send_timeout <%= node[:nginx][:proxy_send_timeout] %>;\n<% end -%>\n\n  # If you don't find the filename in the static files\n  # Then request it from the unicorn server\n  if (!-f $request_filename) {\n    proxy_pass http:\/\/unicorn_<%= @application[:domains].first %>;\n    break;\n  }\n}<\/code><\/pre>\n

location \/<\/code> \u306e\u90e8\u5206\u3067\u3001$request_method<\/code> \u304c OPTIONS \u3060\u3063\u305f\u3089\u3001\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u7528\u306e\u30d8\u30c3\u30c0\u30fc\u306e\u8a2d\u5b9a\u3092\u9069\u7528\u3057\u3066\u3001204 \u3067\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3002
\u305d\u3046\u3067\u306a\u3044 GET \u3084 POST \u306e\u5834\u5408\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u7528\u306e\u30d8\u30c3\u30c0\u30fc\u306e\u8a2d\u5b9a\u3092\u4ed8\u4e0e\u3057\u3066 Rails \u3078\u3001\u3068\u3044\u3046\u6d41\u308c\u3002
\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u7528\u3060\u3057\u3001\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u305f\u306e\u3067\u3088\u3057\u3068\u3059\u308b\u3082\u3001\u306a\u305c if \u6587\u304c\u601d\u3046\u3088\u3046\u306b\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u304b\u7d0d\u5f97\u304c\u3044\u304b\u306a\u3044\u306e\u3067\u5f15\u304d\u7d9a\u304d\u8abf\u67fb\u4e2d\u2026\u2026\u3002 <\/p>\n

\u53c2\u8003\u30b5\u30a4\u30c8<\/h3>\n

HTTP access control (CORS) | MDN<\/a>
CORS(Cross-Origin Resource Sharing)\u306b\u3088\u308b\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u901a\u4fe1\u306e\u50be\u5411\u3068\u5bfe\u7b56 \uff5c Developers.IO<\/a>
CORS(Cross-Origin Resource Sharing)\u306b\u3064\u3044\u3066\u6574\u7406\u3057\u3066\u307f\u305f \uff5c Developers.IO<\/a>
CORS\u3067\u30cf\u30de\u3063\u305f\u3053\u3068\u307e\u3068\u3081 - pixiv inside<\/a> <\/p>\n

OpsWorks\u306a\u3069\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u30b5\u30fc\u30d3\u30b9\u3092\u30d5\u30eb\u6d3b\u7528\u3057\u305fAWS\u30a4\u30f3\u30d5\u30e9\u69cb\u7bc9\u3084\u904b\u7528<\/a>\u3092\u5fa1\u5e0c\u671b\u306e\u4f01\u696d\u69d8\u306f\u3001\u662f\u975eMMM\u306b\u3054\u76f8\u8ac7\u4e0b\u3055\u3044\u307e\u305b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

AngularJS \u3067\u4f5c\u3063\u305f SPA(Single-page application) \u304b\u3089\u3001Ruby on Rails \u3067\u4f5c\u3063\u305f API \u3068\u60c5\u5831\u3092\u3084\u308a\u3068\u308a\u3059\u308b\u305f\u3081\u3001CORS(Cross-Origin Resource Sharing) \u5bfe\u5fdc\u304c\u5fc5\u8981\u306b\u306a\u308a\u3001AWS \u306e OpsWorks \u306e nginx \u306e\u30ec\u30b7\u30d4\u3092\u4fee\u6b63\u3057\u3066\u30cf\u30de\u3063\u305f\u8a71\u3002 CORS(Cross-Origin Resource Sharin […]<\/p>\n","protected":false},"author":3,"featured_media":684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[84],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/178"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":3359,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/178\/revisions\/3359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}