fixed an error for CORS

This commit is contained in:
Anirban-1490 2022-05-02 20:19:00 +05:30
parent 5d8e7c3946
commit b138328a32
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ const app = express()
app.use(express.json())
app.use(
cors()
cors({
origin: 'https://minfy.xyz'
})
)
app.use(json())