BackBone client with a remote Rails Server

后端 未结 3 1769
面向向阳花
面向向阳花 2021-02-06 18:57

Background:

I use \"rails g scaffold hotel name stars:integer\" to start fast (and insert into the database some records), and write a Backbone client

3条回答
  •  不思量自难忘°
    2021-02-06 20:00

    When your javascript application runs on a different domain, port or protocol than your server, strange things will happen. This is called Same Origin Policy. Just load the javascript from your rails server and everything will be fine.

提交回复
热议问题