{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":751828053,"defaultBranch":"main","name":"fiber","ownerLogin":"asyslinux","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-02-02T12:18:43.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/38362418?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1706876324.5202959","currentOid":""},"activityList":{"items":[{"before":"2a2801f486e8e69926885f180090266e04dcf4b6","after":"7fa8b2d4acf8a96b18df42a6f05b7b940d39b045","ref":"refs/heads/main","pushedAt":"2024-03-20T17:51:05.000Z","pushType":"push","commitsCount":60,"pusher":{"login":"asyslinux","name":"Andrey Kuvshinov","path":"/asyslinux","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/38362418?s=80&v=4"},"commit":{"message":"chore(middleware/cors): Merge changes from v2 (#2922)\n\n* fix(middleware/cors): Handling and wildcard subdomain matching (#2915)\r\n\r\n* fix: allow origins check\r\n\r\nRefactor CORS origin validation and normalization to trim leading or trailing whitespace in the cfg.AllowOrigins string [list]. URLs with whitespace inside the URL are invalid, so the normalizeOrigin will return false because url.Parse will fail, and the middleware will panic.\r\n\r\nfixes #2882\r\n\r\n* test: AllowOrigins with whitespace\r\n\r\n* test(middleware/cors): add benchmarks\r\n\r\n* chore: fix linter errors\r\n\r\n* test(middleware/cors): use h() instead of app.Test()\r\n\r\n* test(middleware/cors): add miltiple origins in Test_CORS_AllowOriginScheme\r\n\r\n* chore: refactor validate and normalize\r\n\r\n* test(cors/middleware): add more benchmarks\r\n\r\n* fix(middleware/cors): handling and wildcard subdomain matching\r\n\r\ndocs(middleware/cors): add How it works and Security Considerations\r\n\r\n* chore: grammar\r\n\r\n* Apply suggestions from code review\r\n\r\nCo-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>\r\n\r\n* chore: fix misspelling\r\n\r\n* test(middleware/cors): combine Invalid_Origins tests\r\n\r\n* refactor(middleware/cors): headers handling\r\n\r\n* docs(middleware/cors): Update AllowOrigins description\r\n\r\n* chore: merge\r\n\r\n* perf(middleware/cors): optimize handler\r\n\r\n* perf(middleware/cors): optimize handler\r\n\r\n* chore(middleware/cors): ipdate origin handling logic\r\n\r\n* chore(middleware/cors): fix header capitalization\r\n\r\n* docs(middleware/cors): improve sercuity notes\r\n\r\n* docs(middleware/cors): Improve security notes\r\n\r\n* docs(middleware/cors): improve CORS overview\r\n\r\n* docs(middleware/cors): fix ordering of how it works\r\n\r\n* docs(middleware/cors): add additional info to How to works\r\n\r\n* docs(middleware/cors): rm space\r\n\r\n* docs(middleware/cors): add validation for AllowOrigins origins to overview\r\n\r\n* docs(middleware/cors): update ExposeHeaders and MaxAge descriptions\r\n\r\n* docs(middleware/cors): Add dynamic origin validation example\r\n\r\n* docs(middleware/cors): Improve security notes and fix header capitalization\r\n\r\n* docs(middleware/cors): configuration examples\r\n\r\n* docs(middleware/cors): `\"*\"`\r\n\r\n---------\r\n\r\nCo-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>\r\n\r\n* test(middleware/cors): improve test coverage for request types\r\n\r\n* chore(middleware/cors): fix v2 merge issues\r\n\r\n* test(middleware/cors): Add subdomain matching tests\r\n\r\n* fix(middleware/cors): Update Next function signature\r\n\r\n* test(middleware/cors): Add benchmark for CORS subdomain matching\r\n\r\n* test(middleware/cors): cover additiona test cases\r\n\r\n* refactor(middleware/cors): origin validation and normalization\r\n\r\n---------\r\n\r\nCo-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>","shortMessageHtmlLink":"chore(middleware/cors): Merge changes from v2 (gofiber#2922)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEGvXh9AA","startCursor":null,"endCursor":null}},"title":"Activity ยท asyslinux/fiber"}