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