{"id":11200,"date":"2026-05-27T20:30:26","date_gmt":"2026-05-27T12:30:26","guid":{"rendered":"https:\/\/aeosub.com\/hwconnector-lite-headless-wp-rest-api-cors\/"},"modified":"2026-05-27T20:30:26","modified_gmt":"2026-05-27T12:30:26","slug":"hwconnector-lite-headless-wp-rest-api-cors","status":"publish","type":"post","link":"https:\/\/aeosub.com\/zh\/hwconnector-lite-headless-wp-rest-api-cors\/","title":{"rendered":"HWConnector Lite \u2013 Headless REST API &amp; CORS"},"content":{"rendered":"<div class=\"plugin-info-card\" style=\"border: 1px solid #e2e8f0;border-radius: 10px;overflow: hidden;margin-bottom: 30px;font-family: -apple-system, system-ui, sans-serif;background: #fff\">\n<table style=\"width: 100%;border-collapse: collapse;font-size: 14px\">\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 15px 20px;text-align: left;width: 35%;color: #4a5568;background: #fcfcfc\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/plugins\/geopattern-icon\/hwconnector-lite-headless-wp-rest-api-cors.svg\" style=\"width: 40px;height: 40px;border-radius: 6px;margin-right: 12px;vertical-align: middle\"> Developer<\/th>\n<td style=\"padding: 15px 20px;font-weight: 500\"><a href=\"https:\/\/profiles.wordpress.org\/markmym\/\" target=\"_blank\" rel=\"noopener\">markmym<\/a><\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Version<\/th>\n<td style=\"padding: 12px 20px\">v1.0.1<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Active Installs<\/th>\n<td style=\"padding: 12px 20px\">0 +<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Requires \/ Tested<\/th>\n<td style=\"padding: 12px 20px\">5.8 \/ 7.0<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Last Updated<\/th>\n<td style=\"padding: 12px 20px\">2026-05-27 12:00pm GMT<\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Official Link<\/th>\n<td style=\"padding: 12px 20px\"><a href=\"https:\/\/wordpress.org\/plugins\/hwconnector-lite-headless-wp-rest-api-cors\/\" target=\"_blank\" style=\"text-decoration: none;color: #4a3bca;font-weight: bold\" rel=\"noopener\">View Details \u2192<\/a><\/td>\n<\/tr>\n<\/table><\/div>\n<div class=\"plugin-short-desc\" style=\"margin: 20px 0;padding: 12px 15px;background: #f9fafb;border-left: 4px solid #4a3bca;border-radius: 6px;font-style: italic;color: #4a5568\">Configure ACF REST API, CORS, and a contact form endpoint for headless WordPress \u2014 all through the admin dashboard, without touching functions.php.<\/div>\n<p>Every headless WordPress project requires the same setup: expose ACF fields to the REST API, configure CORS headers for your JavaScript frontend, and register a contact form endpoint.<\/p>\n<p><strong>HWConnector Lite<\/strong> moves all of that out of functions.php and into a clean, tabbed admin settings page.<\/p>\n<h4>Features<\/h4>\n<p><strong>REST API Tab<\/strong><br \/>\n* Expose ACF custom fields for post, page, and one Custom Post Type to the WordPress REST API<br \/>\n* No PHP required \u2014 configure through the admin dashboard<\/p>\n<p><strong>CORS Tab<\/strong><br \/>\n* Add one allowed frontend origin (Next.js, Astro, Nuxt, etc.) through a simple field<br \/>\n* Correct headers sent for GET, POST, and OPTIONS (preflight) requests<br \/>\n* Origin-matched headers \u2014 only the requesting origin is echoed back<\/p>\n<p><strong>Endpoints Tab<\/strong><br \/>\n* <code>POST \/wp-json\/site\/v1\/contact<\/code> \u2014 accepts name, email, message and forwards to your admin email<br \/>\n* Configurable namespace and send-to email<\/p>\n<p><strong>Security Tab<\/strong><br \/>\n* Disable XML-RPC with one toggle (default: ON)<br \/>\n* Hide WordPress version from page source and RSS (default: ON)<\/p>\n<h4>Pro Version<\/h4>\n<p><a href=\"https:\/\/winstonmark.gumroad.com\/l\/dchlm\" rel=\"nofollow ugc noopener\" target=\"_blank\">HWConnector Pro<\/a> unlocks:<\/p>\n<ul>\n<li>Unlimited CORS origins<\/li>\n<li>Unlimited Custom Post Types in the REST API<\/li>\n<li>Newsletter endpoint \u2014 <code>POST \/wp-json\/site\/v1\/newsletter<\/code> with FluentCRM integration<\/li>\n<\/ul>\n<h4>Who it&#8217;s for<\/h4>\n<p>Developers building headless WordPress sites with Next.js, Astro, Nuxt, SvelteKit, or any other JavaScript frontend who want a clean, reusable setup instead of copying functions.php boilerplate on every project.<\/p>\n<h4>Requirements<\/h4>\n<ul>\n<li>WordPress 5.8+<\/li>\n<li>PHP 7.4+<\/li>\n<li>ACF (Advanced Custom Fields) \u2014 optional, required only for the REST API tab<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Configure ACF REST API, CORS, and a contact form endpoint for headless WordPress \u2014 all through the admin dashboard, without touching functions.php.<\/p>","protected":false},"author":1,"featured_media":9317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[252],"tags":[2214,2287,1291,2288,1085,555],"class_list":["post-11200","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends","tag-acf","tag-cors","tag-headless","tag-headless-wordpress","tag-rest-api","tag-wordpress-plugin"],"_links":{"self":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/11200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/comments?post=11200"}],"version-history":[{"count":0,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/11200\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media\/9317"}],"wp:attachment":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media?parent=11200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/categories?post=11200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/tags?post=11200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}