Categories
Notes Server Thoughts

RSS Readers: CORS Update

Just enabled CORS for the RSS feeds and WP-json. If you read this, you could add my blog to your RSS Reader, even web-readers 🙂

Shoutout to: https://www.blogsareback.com/guides/enable-cors?category=CMS&platform=WordPress

I added this to the .htaccess file:

# CORS for web-rss readers - tom 5.4.2026
<IfModule mod_headers.c>
    # Check if the request is for the RSS feed OR the REST API
    SetEnvIf Request_URI "^/(feed|wp-json)" IS_API_OR_FEED

    # Apply CORS headers only to those specific endpoints
    Header set Access-Control-Allow-Origin "*" env=IS_API_OR_FEED
    Header set Access-Control-Allow-Methods "GET, HEAD, OPTIONS" env=IS_API_OR_FEED
</IfModule>

And yes, blogs are back!

Leave a Reply

Your email address will not be published. Required fields are marked *