strapi-identity 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -9716,7 +9716,7 @@ const registerMiddlewares = (server) => {
|
|
|
9716
9716
|
"/strapi-identity/setup-email"
|
|
9717
9717
|
];
|
|
9718
9718
|
const isAllowed = allowedPaths.includes(ctx.path) || // Static assets (JS, CSS, images, fonts, sourcemaps)
|
|
9719
|
-
/\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@");
|
|
9719
|
+
/\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@") || ctx.path.startsWith("/admin/src/");
|
|
9720
9720
|
if (!isAllowed) console.log(ctx.path);
|
|
9721
9721
|
if (!isAllowed) {
|
|
9722
9722
|
if (ctx.accepts("html") && ctx.path.startsWith("/admin")) {
|
package/dist/server/index.mjs
CHANGED
|
@@ -9709,7 +9709,7 @@ const registerMiddlewares = (server) => {
|
|
|
9709
9709
|
"/strapi-identity/setup-email"
|
|
9710
9710
|
];
|
|
9711
9711
|
const isAllowed = allowedPaths.includes(ctx.path) || // Static assets (JS, CSS, images, fonts, sourcemaps)
|
|
9712
|
-
/\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@");
|
|
9712
|
+
/\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@") || ctx.path.startsWith("/admin/src/");
|
|
9713
9713
|
if (!isAllowed) console.log(ctx.path);
|
|
9714
9714
|
if (!isAllowed) {
|
|
9715
9715
|
if (ctx.accepts("html") && ctx.path.startsWith("/admin")) {
|
package/package.json
CHANGED