Turn off CSRF protection for import

This commit is contained in:
Joerg Reichert 2016-04-10 15:31:35 +02:00
parent 16d6b7c389
commit cc17cd5f16

View file

@ -1,4 +1,6 @@
class ImportController < ApplicationController class ImportController < ApplicationController
skip_before_filter :verify_authenticity_token, :only => [:new_papers_callback]
def new_papers_callback def new_papers_callback
require 'open-uri' require 'open-uri'
api_key = Rails.application.config_for(:morph)["key"] api_key = Rails.application.config_for(:morph)["key"]