SyntaxFix
Write A Post
Hire A Developer
Questions
You have to placed this code in application.rb
config.action_dispatch.default_headers = { 'Access-Control-Allow-Origin' => '*', 'Access-Control-Request-Method' => %w{GET POST OPTIONS}.join(",") }