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

Can't access random through Ajax #46

Open
ikedumancas opened this issue Jul 26, 2015 · 3 comments
Open

Can't access random through Ajax #46

ikedumancas opened this issue Jul 26, 2015 · 3 comments

Comments

@ikedumancas
Copy link

How can I access the random proverb generator through ajax? I'm having a No 'Access -Control-Allow-Origin' error.

@christianesperar
Copy link
Contributor

This can be fixed by allowing CORS on the server which can only be configure by @AntJanus. If that's impossible, another way is to setup a proxy on your server that will make a request to the generator and use it on your ajax request.

@AntJanus
Copy link
Owner

AntJanus commented Aug 5, 2015

I'll go ahead and get that setup! I'll update when I'm done.

@christianesperar
Copy link
Contributor

Another solution is jsonp but the output must be on json to avoid some error.

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

3 participants