Update cors
This commit is contained in:
parent
cc7b41efe2
commit
9cc2c7c234
1 changed files with 0 additions and 2 deletions
2
main.go
2
main.go
|
@ -52,8 +52,6 @@ func main() {
|
||||||
|
|
||||||
func Routes() *chi.Mux {
|
func Routes() *chi.Mux {
|
||||||
router := chi.NewRouter()
|
router := chi.NewRouter()
|
||||||
// enable cors testing
|
|
||||||
// LOCK THIS DOWN FOR PRODUCTION
|
|
||||||
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"},
|
||||||
|
|
Reference in a new issue