Merge branch 'xss-bug' into 'develop'

http 跨域配置



See merge request !195
This commit is contained in:
陈晓婷 2019-10-24 17:27:52 +08:00
commit 0f105b5ab4
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ module RedmineApp
# -- all .rb files in that directory are automatically loaded.
#verifier if email is real
config.generators do |g|
g.test_framework :rspec,
@ -80,7 +80,7 @@ module RedmineApp
allow do
origins '*'
# location of your API
resource '/api/*', :headers => :any, :methods => [:get, :post, :options, :put]
resource '*', :headers => :any, :methods => [:get, :post, :options, :put]
end
end