Skip to content

fix: 解决 pjax 下无法获取 security context 的问题#476

Merged
LIlGG merged 3 commits intonextfrom
fix/pjax-security-context
Jan 15, 2024
Merged

fix: 解决 pjax 下无法获取 security context 的问题#476
LIlGG merged 3 commits intonextfrom
fix/pjax-security-context

Conversation

@LIlGG
Copy link
Owner

@LIlGG LIlGG commented Jan 15, 2024

What type of PR is this?

/kind bug

What this PR does / why we need it:

由于 pjax 自动请求时,只会携带 accept: * 进而导致 Halo 无法拦截请求获取 Security Context。因此在 pjax 请求时,手动将 accept 设置为 text/html, application/json, text/plain, */*。用于解决此问题。

Does this PR introduce a user-facing change?

解决 pjax 下无法 Halo 获取 security context 的问题

@LIlGG LIlGG merged commit f973802 into next Jan 15, 2024
@LIlGG LIlGG deleted the fix/pjax-security-context branch March 18, 2024 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant