請在 Gemfile 中新增這個gem 然後記得下 bundle install :. gem 'rack-cors'. 接著新增一個cors 使用的initializer ,origins 請設定你的前端網域,.
確定! 回上一頁