Title: Static JSON Export with CORS
Author: aritrhk
Published: <strong>تەممووز 28, 2026</strong>
Last modified: ئاب 2, 2026

---

گەڕان لە پێوەکراوەکان

![](https://ps.w.org/static-json-export-cors/assets/banner-772x250.jpg?rev=3625243)

![](https://ps.w.org/static-json-export-cors/assets/icon-256x256.jpg?rev=3625243)

# Static JSON Export with CORS

 لەلایەن [aritrhk](https://profiles.wordpress.org/aritrhk/)

[داگرتن](https://downloads.wordpress.org/plugin/static-json-export-cors.1.1.1.zip)

 * [وردەکارییەکان](https://ku.wordpress.org/plugins/static-json-export-cors/#description)
 * [پێداچوونەوەکان](https://ku.wordpress.org/plugins/static-json-export-cors/#reviews)
 *  [دامەزراندن](https://ku.wordpress.org/plugins/static-json-export-cors/#installation)
 * [گەشەپێدان](https://ku.wordpress.org/plugins/static-json-export-cors/#developers)

 [پشتیوانی](https://wordpress.org/support/plugin/static-json-export-cors/)

## وەسف

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.

Feeds are generated automatically when content changes and served cleanly through
a WordPress REST API endpoint (`GET /wp-json/sjec/v1/feed?name=YOUR_FEED_NAME`) 
with a customizable CORS origins whitelist.

#### Key Features

 * **Headless CMS Support:** Export a lightweight post index, chunked paginated 
   page files, and detailed individual post files under a subfolder.
 * **REST API Endpoints:** Serve generated static JSON feeds via `GET /wp-json/sjec/
   v1/feed?name=YOUR_FEED_NAME` and individual posts via `GET /wp-json/sjec/v1/post?
   feed=FEED&slug=SLUG` with full CORS support.
 * **Granular CORS Management:** Enter multiple allowed domains (Origins) in a whitelist
   via the admin panel.
 * **Single JSON Feed:** Create a highly optimized JSON feed for your primary post
   type.
 * **Pretty-Printed JSON:** Clean and readable JSON outputs for easy debugging.
 * **Custom Field Mapping:** Include taxonomy terms or custom meta fields directly
   in the output.
 * **Flexible Querying:** Select targeted post types, filter by a single taxonomy,
   adjust output limits, and sort chronologically.
 * **Value-Added Dashboard:** Monitor folder write privileges, payload sizes, item
   counts, and preview raw JSON output (index, page 1, and individual posts).
 * **GPLv2 & WordPress.org Guidelines Compliant:** Fully sanitized inputs, nonce
   validations, and strict path traversal protection.

#### PRO Features Available

Unlock even more capabilities:
 * **Multiple JSON Feeds:** Manage separate JSON 
endpoints for multiple post types. * **Payload Minification:** Shrink JSON payload
sizes for lightning fast API responses. * **Advanced Taxonomy Filtering:** Use AND/
OR logic to combine multiple taxonomy constraints. * **Sized Featured Images:** 
Export structured arrays containing multiple sizes (thumbnail, medium, large, full)
for featured images (FREE version supports thumbnail URL only). * **Standalone High-
Speed API Endpoint:** Serve static JSON directly via `api.php` bypassing the WordPress
core bootstrap entirely for sub-millisecond response times under heavy traffic. ***
Webhook Integration:** Automatically notify external services or trigger rebuilds
whenever post data is updated.

## دامەزراندن

 1. Upload the `static-json-export-cors` folder to the `/wp-content/plugins/` directory,
    or upload the ZIP file directly via the WordPress admin area.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Navigate to **JSON Export CORS** in the WordPress admin menu to configure your 
    CORS origins and feed structures.

## پهد

### How are feeds served via REST API?

The plugin registers a custom WordPress REST API endpoint (`GET /wp-json/sjec/v1/
feed?name=YOUR_FEED_NAME`) that serves the generated static JSON content with configured
CORS headers attached.

### Can I use it on local environments?

Yes. You can add local URLs (like `http://localhost:3000`) into the CORS Whitelist
setting to debug integrations.

### How do I fix CORS errors (Access-Control-Allow-Origin)?

If you see a browser error log like:
 Access to fetch at ‘https://example.com/wp-
json/sjec/v1/feed?name=default’ from origin ‘https://yourfrontend.com’ has been 
blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the
requested resource. You can resolve this by whitelisting your frontend domain: 1.
Go to the WordPress Admin dashboard and navigate to **JSON Export CORS**. 2. Locate
the **CORS Settings** section. 3. Add your frontend origin (e.g., `https://yourfrontend.
com`) to the **CORS Whitelist** text area. 4. Save the settings. The plugin will
automatically attach the `Access-Control-Allow-Origin: https://yourfrontend.com`
header to all API requests coming from that domain.

## پێداچوونەوەکان

هیچ پێداچوونەوەیەک نەنووسراوە بۆ ئەم پێوەکراوە.

## بەشداربووان و گەشەپێدەران

“Static JSON Export with CORS” نەرمەواڵەیەکی سەرچاوە کراوەیە. ئەم کەسانەی خوارەوە
بەشدارییان تێدا کردووە.

بەشداربووان

 *   [ aritrhk ](https://profiles.wordpress.org/aritrhk/)

[“Static JSON Export with CORS” وەربگێڕە بۆ زمانەکەی خۆت.](https://translate.wordpress.org/projects/wp-plugins/static-json-export-cors)

### دەتەوێت بەشداربیت لە گەشەپێدان؟

[گەڕان لە کۆدەکەدا بکە](https://plugins.trac.wordpress.org/browser/static-json-export-cors/)،
سەیری [تەمارگەی (SVN)](https://plugins.svn.wordpress.org/static-json-export-cors/)
بکە، یان بەشداربە لە [ڕووداوتۆماری گەشەپێدان](https://plugins.trac.wordpress.org/log/static-json-export-cors/)
لە ڕێگەی [(RSS)](https://plugins.trac.wordpress.org/log/static-json-export-cors/?limit=100&mode=stop_on_copy&format=rss).

## ڕووداوتۆمارگەریی گۆڕین

#### 1.1.1

 * Add automated review request admin notice for active users.
 * Add i18n support and bundled translations for Spanish (es_ES), German (de_DE),
   and French (fr_FR).
 * Update FAQ for CORS preflight errors and improve Repo SEO.

#### 1.1.0

 * Add Headless CMS support with static page chunks pagination.
 * Add static detailed JSON files generation for individual posts.
 * Add custom WordPress REST route to serve individual posts dynamically with CORS
   headers.
 * Update admin Dashboard to display URLs and live previews of paginated chunks 
   and individual posts.
 * Add PRO-only sized featured images output (FREE version limited to thumbnail 
   URL string only).
 * Upgrade WordPress Coding Standards requirement to version 3.4.1.

#### 1.0.0

 * Initial release.

## مێتا

 *  وەشان **1.1.1**
 *  دوایین بەڕۆژکردنەوە **2 حەفتە لەمەوبەر**
 *  دامەزراندنی چالاک **کەمتر لە 10**
 *  وەشانی وۆردپرێس ** 5.6 یان بەرزتر **
 *  تاقیکراوەتەوە تا **7.0.4**
 *  وەشانی PHP ** 7.4 یان بەرزتر **
 *  زمان
 * [English (US)](https://wordpress.org/plugins/static-json-export-cors/)
 * تاگەکان
 * [cors](https://ku.wordpress.org/plugins/tags/cors/)[Headless WordPress](https://ku.wordpress.org/plugins/tags/headless-wordpress/)
   [jamstack](https://ku.wordpress.org/plugins/tags/jamstack/)[rest-api](https://ku.wordpress.org/plugins/tags/rest-api/)
 *  [بینینی پێشکەوتوو](https://ku.wordpress.org/plugins/static-json-export-cors/advanced/)

## هەڵسەنگاندنەکان

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/static-json-export-cors/reviews/#new-post)

[بینینی هەموو پێداچوونەوەکان](https://wordpress.org/support/plugin/static-json-export-cors/reviews/)

## بەشداربووان

 *   [ aritrhk ](https://profiles.wordpress.org/aritrhk/)

## پشتیوانی

هیچت هەیە بۆ وتن؟ پێویستت بە یارمەتییە؟

 [بینینی مەکۆی پاڵپشتی](https://wordpress.org/support/plugin/static-json-export-cors/)

## ببەخشە

دەتەوێت پشتگیریی بەرەوپێشچوونی ئەم پێوەکراوە بکەیت؟

 [ ببەخشە بەم پێوەکراوە ](https://aritrhk.com/sjec)