We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1561b commit c8ea36fCopy full SHA for c8ea36f
rxtx.go
@@ -82,6 +82,6 @@ func main() {
82
// CORS
83
func preflight(c *gin.Context) {
84
c.Header("Access-Control-Allow-Origin", "*")
85
- c.Header("Access-Control-Allow-Headers", "access-control-allow-origin, access-control-allow-headers")
+ c.Header("Access-Control-Allow-Headers", "access-control-allow-origin, access-control-allow-headers, content-type")
86
c.JSON(http.StatusOK, struct{}{})
87
}
0 commit comments