使用Rails REST API构建前端接口时,我得到以下错误
XMLHttpRequest cannot load http://www.example.com/questions
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://localhost:4200' is therefore not allowed access.
我已将适配器设置为
import DS from 'ember-data';
e