{"id":1771,"date":"2014-05-14T14:35:46","date_gmt":"2014-05-14T14:35:46","guid":{"rendered":"http:\/\/www.websitedesignwebsitedevelopment.com\/?p=1771"},"modified":"2014-05-14T14:36:52","modified_gmt":"2014-05-14T14:36:52","slug":"cors-cross-origin-resource-sharing","status":"publish","type":"post","link":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/","title":{"rendered":"CORS &#8211; Cross-Origin Resource Sharing"},"content":{"rendered":"<h2>CORS &#8211; Cross-Origin Resource Sharing<\/h2>\n<ol>\n<li>How to enable CORS in your website?<\/li>\n<li>How to send cross site request through ajax?<\/li>\n<li>How to enable cross site jquery post?<\/li>\n<li>How to enable cross site jquery get?<\/li>\n<li>How to enable cross site jquery request?<\/li>\n<li>How to handle cross site requests?<\/li>\n<\/ol>\n<p>Try this in your .htaccess<br \/>\n<code>Header set Access-Control-Allow-Origin \"*\"<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CORS &#8211; Cross-Origin Resource Sharing How to enable CORS in your website? How to send cross site request through ajax? How to enable cross site jquery post? How to enable cross site jquery get? How to enable cross site jquery request? How to handle cross site requests? Try this in your .htaccess Header set Access-Control-Allow-Origin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1771","post","type-post","status-publish","format-standard","hentry","category-htaccess"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to enable CORS in your website?<\/title>\n<meta name=\"description\" content=\"How to send cross site request through ajax\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable CORS in your website?\" \/>\n<meta property=\"og:description\" content=\"How to send cross site request through ajax\" \/>\n<meta property=\"og:url\" content=\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/\" \/>\n<meta property=\"og:site_name\" content=\"AndroidBubble Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453\" \/>\n<meta property=\"article:published_time\" content=\"2014-05-14T14:35:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-14T14:36:52+00:00\" \/>\n<meta name=\"author\" content=\"Fahad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fahad\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/\"},\"author\":{\"name\":\"Fahad\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"headline\":\"CORS &#8211; Cross-Origin Resource Sharing\",\"datePublished\":\"2014-05-14T14:35:46+00:00\",\"dateModified\":\"2014-05-14T14:36:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/\"},\"wordCount\":57,\"articleSection\":[\".htaccess\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/\",\"url\":\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/\",\"name\":\"How to enable CORS in your website?\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\"},\"datePublished\":\"2014-05-14T14:35:46+00:00\",\"dateModified\":\"2014-05-14T14:36:52+00:00\",\"author\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"description\":\"How to send cross site request through ajax\",\"breadcrumb\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/androidbubble.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website Development\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\".htaccess\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/htaccess\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"CORS &#8211; Cross-Origin Resource Sharing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\",\"url\":\"https:\/\/androidbubble.com\/blog\/\",\"name\":\"AndroidBubble Blog\",\"description\":\"Articles &amp; Posts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/androidbubble.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\",\"name\":\"Fahad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"caption\":\"Fahad\"},\"sameAs\":[\"http:\/\/www.androidbubbles.com\/\",\"https:\/\/x.com\/phpFlex\"],\"url\":\"https:\/\/androidbubble.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable CORS in your website?","description":"How to send cross site request through ajax","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/","og_locale":"en_US","og_type":"article","og_title":"How to enable CORS in your website?","og_description":"How to send cross site request through ajax","og_url":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/","og_site_name":"AndroidBubble Blog","article_publisher":"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453","article_published_time":"2014-05-14T14:35:46+00:00","article_modified_time":"2014-05-14T14:36:52+00:00","author":"Fahad","twitter_misc":{"Written by":"Fahad"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/#article","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/"},"author":{"name":"Fahad","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"headline":"CORS &#8211; Cross-Origin Resource Sharing","datePublished":"2014-05-14T14:35:46+00:00","dateModified":"2014-05-14T14:36:52+00:00","mainEntityOfPage":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/"},"wordCount":57,"articleSection":[".htaccess"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/","url":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/","name":"How to enable CORS in your website?","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/#website"},"datePublished":"2014-05-14T14:35:46+00:00","dateModified":"2014-05-14T14:36:52+00:00","author":{"@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"description":"How to send cross site request through ajax","breadcrumb":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/androidbubble.com\/blog\/website-development\/htaccess\/cors-cross-origin-resource-sharing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/androidbubble.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website Development","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/"},{"@type":"ListItem","position":3,"name":".htaccess","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/htaccess\/"},{"@type":"ListItem","position":4,"name":"CORS &#8211; Cross-Origin Resource Sharing"}]},{"@type":"WebSite","@id":"https:\/\/androidbubble.com\/blog\/#website","url":"https:\/\/androidbubble.com\/blog\/","name":"AndroidBubble Blog","description":"Articles &amp; Posts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/androidbubble.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7","name":"Fahad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","caption":"Fahad"},"sameAs":["http:\/\/www.androidbubbles.com\/","https:\/\/x.com\/phpFlex"],"url":"https:\/\/androidbubble.com\/blog\/author\/admin\/"}]}},"views":939,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/1771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/comments?post=1771"}],"version-history":[{"count":1,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/1771\/revisions"}],"predecessor-version":[{"id":1772,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/1771\/revisions\/1772"}],"wp:attachment":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/media?parent=1771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/categories?post=1771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/tags?post=1771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}