{"id":342512,"date":"2026-07-28T00:06:18","date_gmt":"2026-07-28T00:06:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/cors-json-feed-generator\/"},"modified":"2026-07-28T00:06:10","modified_gmt":"2026-07-28T00:06:10","slug":"static-json-export-cors","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/static-json-export-cors\/","author":23532864,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0.2","requires":"5.6","requires_php":"7.4","requires_plugins":null,"header_name":"Static JSON Export with CORS","header_author":"aritrhk","header_description":"Generates custom JSON feeds from posts, pages, or custom post types and serves them via a secure, CORS-enabled REST API endpoint.","assets_banners_color":"3d434f","last_updated":"2026-07-28 00:06:10","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/aritrhk.com\/sjec","header_plugin_uri":"https:\/\/aritrhk.com\/sjec","header_author_uri":"https:\/\/aritrhk.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":27,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"aritrhk","date":"2026-07-28 00:06:10"}},"upgrade_notice":{"1.0.0":"<p>Initial stable release with full CORS support and REST API endpoint.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":3625243,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":3625243,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3625243,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3625243,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1556,6557,252,597,1118],"plugin_category":[],"plugin_contributors":[273551],"plugin_business_model":[],"class_list":["post-342512","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-cors","plugin_tags-feed","plugin_tags-integration","plugin_tags-json","plugin_contributors-aritrhk","plugin_committers-aritrhk"],"banners":{"banner":"https:\/\/ps.w.org\/static-json-export-cors\/assets\/banner-772x250.jpg?rev=3625243","banner_2x":"https:\/\/ps.w.org\/static-json-export-cors\/assets\/banner-1544x500.jpg?rev=3625243","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/static-json-export-cors\/assets\/icon-128x128.jpg?rev=3625243","icon_2x":"https:\/\/ps.w.org\/static-json-export-cors\/assets\/icon-256x256.jpg?rev=3625243","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Static JSON Export with CORS is a lightweight, secure WordPress plugin designed to export your published posts, pages, or custom post types into highly-optimized static JSON files.<\/p>\n\n<p>Feeds are generated automatically when content changes and served cleanly through a WordPress REST API endpoint (<code>GET \/wp-json\/sjec\/v1\/feed?name=YOUR_FEED_NAME<\/code>) with a customizable CORS origins whitelist.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>REST API Endpoint:<\/strong> Access generated static JSON feeds via <code>GET \/wp-json\/sjec\/v1\/feed?name=YOUR_FEED_NAME<\/code> with full CORS support.<\/li>\n<li><strong>Granular CORS Management:<\/strong> Enter multiple allowed domains (Origins) in a whitelist via the admin panel.<\/li>\n<li><strong>Single JSON Feed:<\/strong> Create a highly optimized JSON feed for your primary post type.<\/li>\n<li><strong>Pretty-Printed JSON:<\/strong> Clean and readable JSON outputs for easy debugging.<\/li>\n<li><strong>Custom Field Mapping:<\/strong> Include taxonomy terms or custom meta fields directly in the output.<\/li>\n<li><strong>Flexible Querying:<\/strong> Select targeted post types, filter by a single taxonomy, adjust output limits, and sort chronologically.<\/li>\n<li><strong>Value-Added Dashboard:<\/strong> Monitor folder write privileges, payload sizes, item counts, and preview raw JSON output.<\/li>\n<li><strong>GPLv2 &amp; WordPress.org Guidelines Compliant:<\/strong> Fully sanitized inputs, nonce validations, and strict path traversal protection.<\/li>\n<\/ul>\n\n<h4>PRO Features Available<\/h4>\n\n<p>Unlock even more capabilities:\n* <strong>Multiple JSON Feeds:<\/strong> Manage separate JSON endpoints for multiple post types.\n* <strong>Payload Minification:<\/strong> Shrink JSON payload sizes for lightning fast API responses.\n* <strong>Advanced Taxonomy Filtering:<\/strong> Use AND\/OR logic to combine multiple taxonomy constraints.\n* <strong>Standalone High-Speed API Endpoint:<\/strong> Serve static JSON directly via <code>api.php<\/code> bypassing the WordPress core bootstrap entirely for sub-millisecond response times under heavy traffic.\n* <strong>Webhook Integration:<\/strong> Automatically notify external services or trigger rebuilds whenever post data is updated.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>static-json-export-cors<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory, or upload the ZIP file directly via the WordPress admin area.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Navigate to <strong>JSON Export CORS<\/strong> in the WordPress admin menu to configure your CORS origins and feed structures.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20are%20feeds%20served%20via%20rest%20api%3F\"><h3>How are feeds served via REST API?<\/h3><\/dt>\n<dd><p>The plugin registers a custom WordPress REST API endpoint (<code>GET \/wp-json\/sjec\/v1\/feed?name=YOUR_FEED_NAME<\/code>) that serves the generated static JSON content with configured CORS headers attached.<\/p><\/dd>\n<dt id=\"can%20i%20use%20it%20on%20local%20environments%3F\"><h3>Can I use it on local environments?<\/h3><\/dt>\n<dd><p>Yes. You can add local URLs (like <code>http:\/\/localhost:3000<\/code>) into the CORS Whitelist setting to debug integrations.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Generate secure, fast CORS-enabled static JSON feeds of your posts and pages for external applications or headless setups.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/342512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=342512"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/aritrhk"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=342512"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=342512"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=342512"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=342512"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=342512"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=342512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}