Browse Source

修复:代码溯源cookie domain

pull/313/head
yystopf 3 years ago
parent
commit
81b684e469
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/controllers/traces/projects_controller.rb

+ 5
- 1
app/controllers/traces/projects_controller.rb View File

@@ -89,6 +89,10 @@ class Traces::ProjectsController < Traces::BaseController
end end


def set_trace_token_to_cookie def set_trace_token_to_cookie
cookies[:vue_admin_template_token] = current_user&.trace_token
cookies[:vue_admin_template_token] = {
:value => current_user&.trace_token,
:expires => 1.hours.from_now,
:domain => Trace.trace_config[:domain]
}
end end
end end

Loading…
Cancel
Save