Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NotZarifGithub committed Dec 6, 2023
1 parent ab70cb3 commit 4d32a1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: 'http://localhost:3000',
target: 'https://inspiroverse.onrender.com/',
secure: false,
},
},
Expand Down
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const app = express()
const PORT = process.env.PORT || 3000

const corsOptions = {
origin: 'http://yourfrontend.com',
origin: 'https://inspiroverse.vercel.app/',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true, // enable set cookie
optionsSuccessStatus: 204,
Expand Down

0 comments on commit 4d32a1c

Please sign in to comment.