| 开发者 | aritrhk |
|---|---|
| 更新时间 | 2026年8月2日 12:14 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
GET /wp-json/sjec/v1/feed?name=YOUR_FEED_NAME) with a customizable CORS origins whitelist.
Key Features
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.api.php bypassing the WordPress core bootstrap entirely for sub-millisecond response times under heavy traffic.static-json-export-cors folder to the /wp-content/plugins/ directory, or upload the ZIP file directly via the WordPress admin area.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.
Yes. You can add local URLs (like http://localhost:3000) into the CORS Whitelist setting to debug integrations.
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:
https://yourfrontend.com) to the CORS Whitelist text area.Access-Control-Allow-Origin: https://yourfrontend.com header to all API requests coming from that domain.