Skip to content
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

Resolve CORS restrictions on feed URL endpoint #9

Open
reefdog opened this issue Jun 24, 2020 · 0 comments
Open

Resolve CORS restrictions on feed URL endpoint #9

reefdog opened this issue Jun 24, 2020 · 0 comments
Labels
plugin: rss Relates to the RSS plugin

Comments

@reefdog
Copy link
Collaborator

reefdog commented Jun 24, 2020

Currently, we can't fetch the news feed URL via the plugin directly due to CORS restrictions. I'm temporarily working around that by bouncing the request through an open CORS proxy, but that's not an acceptable production solution.

We should preferably ensure the endpoint is configured with the BuildFire plugin server's URL (https://pluginserver.buildfire.com) in the Access-Control-Allow-Origin list. Less preferable would be setting up our own version of the CORS proxy. (Both of these are discussed in this article.)

Note: It's possible (but unproven) that STAT has already configured the endpoint to allow BuildFire's plugin server as an origin, which would mean this doesn't affect the plugin once deployed. If that's the case I'll close this, though probably leave the CORS proxy in the codebase as a localhost-only addition.

@reefdog reefdog added the plugin: rss Relates to the RSS plugin label Jun 24, 2020
@reefdog reefdog changed the title Resolves CORS restrictions on feed URL endpoint Resolve CORS restrictions on feed URL endpoint Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: rss Relates to the RSS plugin
Projects
None yet
Development

No branches or pull requests

1 participant