Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8372157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:21:10+00:00 2026-06-09T14:21:10+00:00

Started playing with Ember.js and ember-data. I followed this tutorial which guides you to

  • 0

Started playing with Ember.js and ember-data. I followed this tutorial which guides you to create a Twitter timeline show.
It’s pretty neat, but it doesn’t use ember-data, which it seems to me a good way to deal with REST APIs.

In my playground, I created something like this:

EmberTwitter.Tweet = DS.Model.extend({
  avatar: null,
  screen_name: null,
  text: null,
  date: null,
  url: "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=naoj_gior"
});

var tweets = EmberTwitter.store.findAll(EmberTwitter.Tweet);

I would like to know if ember-data is prepared to work with external APIs (and how it deals with Same Origin Policy…) because it seems to me and after looking to the docs, that is not. I see the following error in the console:

Resource failed to load: file:///tweets

What would be a good way to fetch an external API with ember.js?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:21:12+00:00Added an answer on June 9, 2026 at 2:21 pm

    You’re correct– because it runs in your browser it’s subject to the sames rules as every other library/plain JS. You will have to use some sort of server proxy that passes your request through (a PHP script, etc).

    You can see an example of this sort of proxy (written in PHP) here:
    http://www.daniweb.com/web-development/php/code/216729/php-proxy-solution-for-cross-domain-ajax-scripting

    The general idea is, you simply use your server to make the request on behalf of the Javascript and echo it out.

    It also looks like someone used an IFrame to achieve the same purpose. The following example also is Ember.js, so it might work for you:
    http://eng.netwallet.com/2012/04/17/simple-cross-domain-ajax-with-a-wormhole-5/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started playing around with XQuery . On [w3schools][1] its a good tutorial. I
Just started playing with Android and I'm trying to create an app that has
I started playing with Blueprint CSS tonight and things are going pretty well. Up
I started playing with Sinatra and deploying on Heroku, which I find really enjoyable.
Just started playing with knockout.Js which is a fantastic framework Steve's really done well
I've just started playing with Django and am loosely following the tutorial with my
I started playing around with Celery and RabbitMQ this morning and defined some basic
I just started playing around with JSON and I have created this example. var
I've just started playing around with Android Licensing and I ran into this problem.
Just started playing with ninject - and I can't get past this issue. Consider

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.