stalone
Posts: 0
Joined: Fri Feb 24, 2012 5:51 pm

RSS example does not work after export.

RSS example does not work after export.

I use the build-in exsample project RSS and test works on Tiggzi builder(click on test button in Tiggzi builder),

but if I export the project and run it localy (call index.html from project zip) it dosent work.

I have simply a blank screen, it looks like rss url is not accessible.

I've tried both variants with and without "Use Tiggzi Proxy" Checkbox

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

RSS example does not work after export.

It's because of cross-domain security. If you want to invoke a service from lifehacker.com domain (from tutorial), the page has to be hosted on the same domain. Inside Tiggzi builder, we provide the proxy and when the request goes via the proxy, it's not coming form a page and thus no cross-domain security problem.

When you export the app, it's running locally and the browser doesn't let you invoke the service running on another domain. That's just how the browsers work, it's a security feature.

If you host the app on tiggzi.net - you can use the proxy.

Hope this helps...

stalone
Posts: 0
Joined: Fri Feb 24, 2012 5:51 pm

RSS example does not work after export.

Max, thank you very much!

it hopes me definitely!

TomBenson
Posts: 0
Joined: Sun Feb 05, 2012 12:55 am

RSS example does not work after export.

HI Max,

I'm having the same problem (glad I found this thread!) We have a project designed based on Test environment which now doesn't work in hosting...

There are 3 questions:

  1. I have tried hosting on Tiggzi.net with proxy on, but it doesn't seem to work there either. Any update on that?

  2. Currently we generate our feed from domainA and we host our HTML on domainB. We can try making these 'the same" but I'm worried that this won't work either. Are there other restrictions regarding sub-domains, sub-directories, etc?

  3. For "read only" situations (like the Lifehacker example) is there some way to turn AJAX cross-domain restrictions off, perhaps by modifying a line of code? The reason is, it makes no sense to me that an RSS reader should be required to be hosted on the same domain as the RSS feed originated. I can see this requirement when data is being updated, but not for read-only. Or am I missing something here? :)

    thanks! the depth of support here on the forum is really excellent...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

RSS example does not work after export.

1) When you host on tiggzi.net, proxy is not used. We had to turn it off some time ago as the proxy is not production level proxy. It will be available as part of backend services soon.

2) I think the domains need to match exactly. This has nothing to do with our platform, how browsers and Ajax work.

3) There is no quick way to do that. The browser sends an Ajax request - it doesn't know whether it's a static RSS feed or data.

Return to “Issues”