mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
修复:代码溯源cookie domain
This commit is contained in:
@@ -89,6 +89,10 @@ class Traces::ProjectsController < Traces::BaseController
|
||||
end
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user