vertx-web
vertx-web copied to clipboard
allowedHeadersString will never be null, so this else case will not be entered, this will trigger bug in some cases. please review and fix it.
https://github.com/vert-x3/vertx-web/blob/ff42212f74fc55ca73391933a707c2d2de358711/vertx-web/src/main/java/io/vertx/ext/web/handler/impl/CorsHandlerImpl.java#L198
allowedMethodString has the same issue
allowedMethodString has the same issue
allowedMethodString doesn't have an else block.
https://github.com/vert-x3/vertx-web/blob/ff42212f74fc55ca73391933a707c2d2de358711/vertx-web/src/main/java/io/vertx/ext/web/handler/impl/CorsHandlerImpl.java#L198
I would like to work on this issue. Can I?
yes,you can
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年03月26日 22:18 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [vert-x3/vertx-web] allowedHeadersString will never be null, so this else case will not be entered, this will trigger bug in some cases. please review and fix it. (Issue #2152) |
https://github.com/vert-x3/vertx-web/blob/ff42212f74fc55ca73391933a707c2d2de358711/vertx-web/src/main/java/io/vertx/ext/web/handler/impl/CorsHandlerImpl.java#L198
I would like to work on this issue. Can I?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
CORS implementation has been reviewed to follow the OWASP recommendations. I'd recommend against premature optimizations