{"id":243,"date":"2022-07-10T18:50:38","date_gmt":"2022-07-10T17:50:38","guid":{"rendered":"https:\/\/www.simons.tools\/en\/?p=243"},"modified":"2023-08-26T06:42:16","modified_gmt":"2023-08-26T05:42:16","slug":"","status":"publish","type":"post","link":"https:\/\/www.simons.tools\/de\/htaccess-cors-multiple-hosts\/","title":{"rendered":"Unbenannt","raw":""},"content":{"rendered":"","protected":false,"raw":""},"excerpt":{"rendered":"","protected":false,"raw":""},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_en_post_content":"<!-- wp:heading {\"level\":1} -->\n<h1 class=\"wp-block-heading\"><\/h1>\n<!-- \/wp:heading -->\n\n<!-- wp:codemirror-blocks\/code-block {\"fileName\":\".htaccess\",\"mode\":\"htmlmixed\",\"mime\":\"text\/html\"} -->\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#&lt;IfModule mod_headers.c&gt;\n        SetEnvIf Origin &quot;http(s)?:\/\/(www\\.)?(192.168.168.30|192.168.168.57|192.168.0.34|another.domain.rip|localhost|test-cors.org)(\\:3000)?$&quot; AccessControlAllowOrigin=$0\n        # Header merge Access-Control-Allow-Methods DELETE, POST, GET, OPTIONS\n        # Header merge Access-Control-Allow-Headers Content-Type, Authorization, X-Requested-With\n        Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin\n        Header add Access-Control-Allow-Credentials true\n        Header add Access-Control-Allow-Headers pragma\n        Header add Access-Control-Allow-Headers cache-control\n        Header add Access-Control-Allow-Headers content-type\n        Header add Access-Control-Allow-Headers authorization\n        Header merge Vary Origin\n#&lt;\/IfModule&gt;<\/pre><\/div>\n<!-- \/wp:codemirror-blocks\/code-block -->","_en_post_name":"htaccess-cors-multiple-hosts","_en_post_excerpt":"","_en_post_title":".htaccess CORS Multiple hosts","_de_post_content":"","_de_post_name":"","_de_post_excerpt":"","_de_post_title":"","edit_language":"de","footnotes":""},"categories":[12],"tags":[],"class_list":["post-243","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/posts\/243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":2,"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/posts\/243\/revisions\/297"}],"wp:attachment":[{"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simons.tools\/de\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}