Compare commits
2 commits
5a0875a0ca
...
9cc2c7c234
Author | SHA1 | Date | |
---|---|---|---|
9cc2c7c234 | |||
cc7b41efe2 |
1 changed files with 1 additions and 3 deletions
4
main.go
4
main.go
|
@ -52,10 +52,8 @@ func main() {
|
|||
|
||||
func Routes() *chi.Mux {
|
||||
router := chi.NewRouter()
|
||||
// enable cors testing
|
||||
// LOCK THIS DOWN FOR PRODUCTION
|
||||
cors := cors.New(cors.Options{
|
||||
AllowedOrigins: []string{"*"},
|
||||
AllowedOrigins: []string{"https//sudoscientist.com", "https://www.sudoscientist.com"},
|
||||
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"},
|
||||
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
|
||||
AllowCredentials: true,
|
||||
|
|
Reference in a new issue