Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONP 中间件边界问题 #2692

Open
abnerCrack opened this issue Jan 31, 2023 · 0 comments
Open

JSONP 中间件边界问题 #2692

abnerCrack opened this issue Jan 31, 2023 · 0 comments

Comments

@abnerCrack
Copy link
Contributor

abnerCrack commented Jan 31, 2023

  • Node Version: v19.2.0
  • Midway Version(Decorator/Core): v3
  • Component Name/Version: @midwayjs/cross-domain/3.9.0
  • Platform: MACOS

问题描述

@Controller('/case', { middleware: [CorsMiddleware, JSONPMiddleware] })
JSONPMiddleware 在处理JSONP请求的时候, 缺少对callback参数的处理,会导致所有的请求都转化为JSONP请求。
@abnerCrack abnerCrack changed the title [bug] JSONP 中间件边界问题 JSONP 中间件边界问题 Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant