Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dynamic_forms (0.3.1)
dynamic_forms (0.3.2)
friendly_id (~> 5.1.0)
jquery-rails
kaminari
Expand Down
4 changes: 1 addition & 3 deletions app/controllers/dynamic_forms/api/base_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module DynamicForms
module Api
class BaseController < DynamicForms::ApplicationController
skip_before_action :verify_authenticity_token
class BaseController < ActionController::Base
before_action :set_cors

private

def set_cors
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, PUT, DELETE, GET, OPTIONS'
Expand Down
2 changes: 1 addition & 1 deletion lib/dynamic_forms/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DynamicForms
VERSION = '0.3.1'
VERSION = '0.3.2'
end