2015-10-05 15:24:37 +03:00
|
|
|
class Api::ApplicationController < ::ApplicationController
|
2016-11-04 15:34:44 +02:00
|
|
|
def set_access_control_headers
|
|
|
|
if request.format.json?
|
|
|
|
response.headers['Access-Control-Allow-Origin'] = '*'
|
|
|
|
end
|
|
|
|
end
|
2015-10-05 15:24:37 +03:00
|
|
|
end
|