Title: RSS CORS Enable
Author: No Frills Plugins
Published: <strong>2024 年 6 月 19 日</strong>
Last modified: 2024 年 6 月 19 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/rss-cors-enable.svg)

# RSS CORS Enable

 作者：[No Frills Plugins](https://profiles.wordpress.org/nofrillsplugins/)

[下载](https://downloads.wordpress.org/plugin/rss-cors-enable.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/rss-cors-enable/#description)
 * [评价](https://cn.wordpress.org/plugins/rss-cors-enable/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/rss-cors-enable/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/rss-cors-enable/#developers)

 [支持](https://wordpress.org/support/plugin/rss-cors-enable/)

## 描述

RSS CORS Enable is a simple yet powerful plugin designed to solve the common problem
of accessing WordPress RSS feeds from different origins. By default, accessing WordPress
RSS feeds via JavaScript from a domain different than the one where WordPress is
hosted can result in Cross-Origin Resource Sharing (CORS) errors. This plugin addresses
this issue by adding an `Access-Control-Allow-Origin: *` header to your WordPress
RSS feed, making it accessible from any origin.

## 安装

 1. Upload the `rss-cors-enable` directory to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. That’s it! The plugin works out of the box, no configuration is needed.

## 常见问题

### Can I restrict the RSS feed to be available for specific domains instead of all?

Yes, although the default behaviour is to allow all origins (`Access-Control-Allow-
Origin: *`), you can modify the plugin code to specify specific domains. Replace
the `*` in the `header("Access-Control-Allow-Origin: *");` line with the domain 
you wish to allow. When you do this, it might be wiped away when upgrading the plugin.

### Does this plugin add CORS headers to other parts of my website than the RSS feed?

No, it shouldn’t, as far as we’ve tested. This plugin is specifically designed to
modify only the WordPress RSS feed responses. Other parts of your WordPress site
or API will not be affected.

## 评价

此插件暂无评价。

## 贡献者及开发者

「RSS CORS Enable」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ No Frills Plugins ](https://profiles.wordpress.org/nofrillsplugins/)

[帮助将「RSS CORS Enable」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/rss-cors-enable)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/rss-cors-enable/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/rss-cors-enable/)，或通过[RSS](https://plugins.trac.wordpress.org/log/rss-cors-enable/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/rss-cors-enable/)。

## 更新日志

#### 1.0

 * Initial release. Adds CORS header to WordPress RSS feeds.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**2 年前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 5.5 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/rss-cors-enable/)
 * 标签
 * [cors](https://cn.wordpress.org/plugins/tags/cors/)[feeds](https://cn.wordpress.org/plugins/tags/feeds/)
   [rss](https://cn.wordpress.org/plugins/tags/rss/)
 *  [高级视图](https://cn.wordpress.org/plugins/rss-cors-enable/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/rss-cors-enable/reviews/)

## 贡献者

 *   [ No Frills Plugins ](https://profiles.wordpress.org/nofrillsplugins/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/rss-cors-enable/)