8000 RSS Feed - CORS blocked · Issue #221 · cstate/cstate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RSS Feed - CORS blocked #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JXGA opened this issue Dec 25, 2021 · 1 comment
Closed

RSS Feed - CORS blocked #221

JXGA opened this issue Dec 25, 2021 · 1 comment
Labels

Comments

@JXGA
Copy link
JXGA commented Dec 25, 2021

Is your feature request related to a problem? Please describe.

When attempting to feed the cState RSS feed into Grafana, I encountered it was blocked by CORS.

Describe the solution you'd like

Standardised CORS 'fix' for the RSS feed

Describe alternatives you've considered

N/A

Additional context

I followed from another of the CORS issues encountered and added the below into netlify.toml:

[[headers]]
    for = "/*.xml"
    [headers.values]
      Access-Control-Allow-Origin = "*"

This resolved the 'issue' but I'm not sure it's best practice or the best solution.

Addition of the above code (or improved version!) might be considered for future upgrades if needed for other users.

Thanks for the excellent project!

@mistermantas
Copy link
Member

hi,

headers aren't defined by cstate, they're defined in the configurations of each individual website on each individual hosting provider (netlify, cloudflare pages, whatever else you use)

the default example repository has a boilerplate netlify.toml which has the exact same code, but for the JSON API (instead of RSS/XML)

thank you for letting me know RSS is blocked by CORS by default - definitely something that needs to be highlighted

mistermantas added a commit that referenced this issue Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0