heroku not supporting website from othr web source..

27 views
Skip to first unread message

mukul saharia

unread,
Nov 13, 2014, 2:35:42 AM11/13/14
to rubyonra...@googlegroups.com
hello friends,
i am working with rails and i want to load some java script components from other web source and render it in my web site which is hosted on heroku.
but heroku is not loading components from other web source.
is there any solution for it.

i copied this code in view. This java script is rendaring on localhost but not working on heroku.
<div>
<script type="text/javascript" src="http://app.ecwid.com/script.js?5*****77" charset="utf-8"></script>
<script type="text/javascript"> xVCategories("id=my-vCategories-5*******7"); </script>
</div>

thanx in advance.

mukul


Matt Jones

unread,
Nov 13, 2014, 7:28:39 AM11/13/14
to rubyonra...@googlegroups.com
It's nearly-impossible to troubleshoot something like this based solely on the description "not working on Heroku". 

* What messages do you get in the browser console when you load the page from Heroku? 

* Does the server at app.ecwid.com implement some kind of licensing? Some SaaS products will check the Referer header and deny access to requests coming from unlicensed domains that aren't "localhost".

--Matt Jones

Jason Fleetwood-Boldt

unread,
Nov 13, 2014, 11:36:10 AM11/13/14
to rubyonra...@googlegroups.com

Did you set the CORS on the domain that is serving up the assets?

Your problem almost certainly has nothing to do with Heroku.

http://en.wikipedia.org/wiki/Cross-origin_resource_sharing





--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e9e3716e-826f-4f1a-bd37-22ec181e0b1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

----

Jason Fleetwood-Boldt

All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email ja...@datatravels.com with questions/concerns about this.

Reply all
Reply to author
Forward
0 new messages