Fix cors path, ship v1
This commit is contained in:
parent
38e7f62c15
commit
c26ded1b69
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -53,7 +53,7 @@ func main() {
|
||||||
func Routes() *chi.Mux {
|
func Routes() *chi.Mux {
|
||||||
router := chi.NewRouter()
|
router := chi.NewRouter()
|
||||||
cors := cors.New(cors.Options{
|
cors := cors.New(cors.Options{
|
||||||
AllowedOrigins: []string{"https//sudoscientist.com", "https://www.sudoscientist.com"},
|
AllowedOrigins: []string{"https://sudoscientist.com", "https://www.sudoscientist.com"},
|
||||||
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"},
|
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"},
|
||||||
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
|
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
|
|
Reference in a new issue