Local node service sets CORS cross-domain

problem description

upload files not across domains after starting node express locally

app.use(cors());

the environmental background of the problems and what methods you have tried

upload pictures across domains after publishing online. Other data interfaces are not cross-domain

related codes

/ / Please paste the code text below (do not replace the code with pictures)

clipboard.png

what result do you expect? What is the error message actually seen?

Menu