Remove custom CORS controller for JiraConnect
This goes back to use Rack Cors instead of the custom cors controller for jira_connect routes. The customer controller was added to be able to add origins dynamically based on the jira_connect_proxy_url setting. I learned that this can be done by passing a block to origins using Rack Cors. The custom controller also had the problem that the OPTIONS request was intercepted by Rack Cors and never reached the controller. Changelog: fixed
显示
- app/controllers/jira_connect/application_controller.rb 0 个添加, 27 个删除app/controllers/jira_connect/application_controller.rb
- app/controllers/jira_connect/cors_preflight_checks_controller.rb 0 个添加, 16 个删除...trollers/jira_connect/cors_preflight_checks_controller.rb
- app/controllers/jira_connect/oauth_application_ids_controller.rb 0 个添加, 1 个删除...trollers/jira_connect/oauth_application_ids_controller.rb
- app/controllers/jira_connect/subscriptions_controller.rb 0 个添加, 1 个删除app/controllers/jira_connect/subscriptions_controller.rb
- config/application.rb 15 个添加, 0 个删除config/application.rb
- config/routes.rb 3 个添加, 4 个删除config/routes.rb
- spec/requests/jira_connect/cors_preflight_checks_controller_spec.rb 0 个添加, 66 个删除...sts/jira_connect/cors_preflight_checks_controller_spec.rb
- spec/requests/jira_connect/oauth_application_ids_controller_spec.rb 18 个添加, 1 个删除...sts/jira_connect/oauth_application_ids_controller_spec.rb
- spec/requests/jira_connect/subscriptions_controller_spec.rb 34 个添加, 2 个删除spec/requests/jira_connect/subscriptions_controller_spec.rb
加载中
想要评论请 注册 或 登录