Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
4df6271b
Commit
4df6271b
authored
Dec 11, 2018
by
Sietse Ringers
Browse files
Add CORS AllowedMethods
parent
cb0db13b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/irmaserver/server.go
View file @
4df6271b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment