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

Option to avoid CORS proxy? #1

Open
OmarShehata opened this issue Jul 28, 2024 · 0 comments
Open

Option to avoid CORS proxy? #1

OmarShehata opened this issue Jul 28, 2024 · 0 comments

Comments

@OmarShehata
Copy link

I was using this on the following RSS feed https://mastodon.social/@ithacasocialcircle.rss

however it fails:

GET https://cors.rosano.ca/https://mastodon.social/@ithacasocialcircle.rss 403 (Forbidden)

if I access https://cors.rosano.ca/https://mastodon.social/@ithacasocialcircle.rss I get

Missing required request header. Must specify one of: origin,x-requested-with

in any case, I think mastodon allows cors so it's not needed? is there a way to tell OSFeedbox to make the request directly?

This works fine in the browser for me:

async function main() {
    const request = await fetch("https://mastodon.social/@ithacasocialcircle.rss")
    const text = await request.text()
    console.log(text)
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant