docs: new troubleshooting guide + cors fix (#6387)

- Fixed CORS middleware to account for routes of a single path (for example, `/custom` and not just `/custom/test`).
- Added a troubleshooting guide for admin webpack errors (see issue #6375)
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-02-13 11:32:02 +00:00
1 parent 5ddae7ecd1
commit d1f697c88e
4 files changed
+98 -2

No files matched your search

@@ -128,7 +128,7 @@ import cors from "cors"
export const config: MiddlewaresConfig = {
routes: [
{
matcher: "/custom/*",
matcher: "/custom*",
middlewares: [
cors({
origin: "*",