fix: use proper vite port for dev. cors
This commit is contained in:
parent
5b633498cb
commit
6ee0d269d8
@ -24,7 +24,7 @@ func (sc *SvcConfig) allowedOrigins() []string {
|
|||||||
if sc.IsProd {
|
if sc.IsProd {
|
||||||
allowed = []string{sc.FrontendURL}
|
allowed = []string{sc.FrontendURL}
|
||||||
} else {
|
} else {
|
||||||
allowed = []string{"http://localhost:3000"}
|
allowed = []string{"http://localhost:5173"}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug().Msgf("CORS allowedOrigins: %v", allowed)
|
log.Debug().Msgf("CORS allowedOrigins: %v", allowed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user