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

access to xmlhttprequest blocked by cors policy #1

Open
ghost opened this issue Jan 20, 2019 · 1 comment
Open

access to xmlhttprequest blocked by cors policy #1

ghost opened this issue Jan 20, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 20, 2019

The latest update to this repo has it set up to scrape blogs from a URL instead of through HTML files as are in the instructions. When I am pointing to the HTML directory nothing happens and dev console shows no errors or nothing happening. When I use the scrape from URLs (a txt file of all blog posts) I get the error "access to xmlhttprequest blocked by cors policy"

@devonwaldon
Copy link
Collaborator

Hi @raposx ... Thanks for the note! Good catch; definitely a spot to improve in our documentation. In crawler.php, there is a chunk of code you can comment out that allows for either importing from files or URLs. If you're importing from URLs you'll likely run into that CORS error... I've used the Chrome plugin Allow-Control-Allow-Origin-* to get around it during content imports!

Hope that helps.

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