Fix origins
This commit is contained in:
parent
5a0875a0ca
commit
cc7b41efe2
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -55,7 +55,7 @@ func Routes() *chi.Mux {
|
||||||
// enable cors testing
|
// enable cors testing
|
||||||
// LOCK THIS DOWN FOR PRODUCTION
|
// LOCK THIS DOWN FOR PRODUCTION
|
||||||
cors := cors.New(cors.Options{
|
cors := cors.New(cors.Options{
|
||||||
AllowedOrigins: []string{"*"},
|
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