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
2024-02-13 13:32:02 +02:00
committed by GitHub
parent 5ddae7ecd1
commit d1f697c88e
4 changed files with 98 additions and 2 deletions

View File

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