eggjs / egg-security

Security plugin for egg, force performance too.
MIT License
238 stars 43 forks source link

feat: Check whether the value is legal Before setting the header #72

Open GuanyuChen opened 2 years ago

GuanyuChen commented 2 years ago
Checklist
Affected core subsystem(s)
Description of change

add utils.checkInvalidHeaderChar, check whether the value is legal Before setting the header, the illegal header will not be set

GuanyuChen commented 2 years ago

@dead-horse 大佬有时间帮忙 review 一下不?