{"id":1466,"date":"2018-05-28T13:17:57","date_gmt":"2018-05-28T03:17:57","guid":{"rendered":"http:\/\/burblechaz.com\/blog\/?p=1466"},"modified":"2018-05-28T13:29:53","modified_gmt":"2018-05-28T03:29:53","slug":"angular-httpclient-weirdness","status":"publish","type":"post","link":"http:\/\/burblechaz.com\/blog\/2018\/05\/angular-httpclient-weirdness\/","title":{"rendered":"Angular HttpClient weirdness"},"content":{"rendered":"<p>Making a note for myself:<\/p>\n<p>When executing an HTTP GET from angular HttpClient, the server needs to set this header:<br \/>\n<code><br \/>\nAccess-Control-Allow-Origin: *<br \/>\n<\/code><\/p>\n<p>This is to allow <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/CORS\">Cross-Origin Resource Sharing.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Making a note for myself: When executing an HTTP GET from angular HttpClient, the server needs to set this header: Access-Control-Allow-Origin: * This is to allow Cross-Origin Resource Sharing.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1466","post","type-post","status-publish","format-standard","hentry","category-pictures"],"_links":{"self":[{"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/posts\/1466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/comments?post=1466"}],"version-history":[{"count":0,"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/posts\/1466\/revisions"}],"wp:attachment":[{"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/media?parent=1466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/categories?post=1466"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/burblechaz.com\/blog\/wp-json\/wp\/v2\/tags?post=1466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}