i have a really strange behavour. I dockerized my Strapi CMS App and everything worked fine until a few days ago. Now i cannot start the application without getting the following error on loading:
In console:
[2022-04-25 11:40:11.922] error: Malicious Path BadRequestError: Malicious Path
at resolvePath (MY_PATH/backend/node_modules/resolve-path/index.js:78:11)
In Browser:
It calls the following URL:
http://0.0.0.0:1337//admin/init
I noticed the // after the port. When i curl http://0.0.0.0:1337/admin/init i get the following response:
{"data":{"uuid":"SOME_UUID","hasAdmin":true}}
But that doesnt help me.
This is my server.js:
module.exports = ({ env }) => ({
host: env('HOST'),
port: env.int('BACKEND_PORT'),
//url: env("PUBLIC_URL"),
app: {
keys: env.array('APP_KEYS'),
},
});
In my .env file is set the following:
HOST=localhost
BACKEND_PORT=1337
It would be awesome if anyone could help me, i am stuck with this problem for a few days. :/ Thank you!
