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

Cross Domain errors when using Jquery #98

Open
teknetik opened this issue Aug 28, 2018 · 0 comments
Open

Cross Domain errors when using Jquery #98

teknetik opened this issue Aug 28, 2018 · 0 comments

Comments

@teknetik
Copy link

Not su much of an issue but wanted to leave a note for the next tinkerer who might being doing something similar, not being a pro web dev I faced issues when trying to POST commands using Jquery:

no 'access-control-allow-origin' header is present on the requested resource

To avoid this I use apache to reverse proxy the API server:

<VirtualHost *:8000> ProxyPreserveHost On ProxyPass / http://192.168.1.105:8282/ Header add "Access-Control-Allow-Origin" "*" ProxyPassReverse / http://192.168.1.105:8282/ </VirtualHost>

Hope this tip might help another noob one day and issue can be closed.

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