fixed CORS error
This commit is contained in:
parent
49fceb62ed
commit
5d8e7c3946
|
@ -11,13 +11,7 @@ const app = express()
|
|||
|
||||
app.use(express.json())
|
||||
app.use(
|
||||
cors({
|
||||
origin:
|
||||
process.env.NODE_ENV?.trim() === 'development'
|
||||
? // ? 'http://localhost:3000'
|
||||
'https://url-minify-git-fork-olaleye-blessing-fixurlminified-bravo68web.vercel.app'
|
||||
: 'https://minfy.xyz',
|
||||
})
|
||||
cors()
|
||||
)
|
||||
|
||||
app.use(json())
|
||||
|
|
Loading…
Reference in New Issue