Commit 4df6271b authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Add CORS AllowedMethods

parent cb0db13b
......@@ -56,6 +56,7 @@ func Handler(config *Configuration) (http.Handler, error) {
router.Use(cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type"},
AllowedMethods: []string{http.MethodGet, http.MethodPost, http.MethodDelete},
}).Handler)
// Mount server for irmaclient
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment