-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Repo: https://github.com/TrackDons/web-analytics
Things:
- I modified the .js so it listens on localhost:4000 https://github.com/TrackDons/web-analytics/blob/master/public/ahoy.js#L24
- I included this in trackdons (not comitted):
<script type="text/javascript" src="http://localhost:4000/ahoy.js"></script>
<script>
ahoy.trackAll();
</script>
- When loading TrackDons, I get a CORS error:
XMLHttpRequest cannot load http://localhost:4000/ahoy/events. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 404.
- I tried with this http://leopard.in.ua/2012/07/08/using-cors-with-rails/ and this http://demisx.github.io/rails-api/2014/02/18/configure-accept-headers-cors.html - without success.
Any hint @ferblape ?
Metadata
Metadata
Assignees
Labels
No labels