Skip to content

Commit c8ea36f

Browse files
committed
added content-type to CORS headers
1 parent bb1561b commit c8ea36f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rxtx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ func main() {
8282
// CORS
8383
func preflight(c *gin.Context) {
8484
c.Header("Access-Control-Allow-Origin", "*")
85-
c.Header("Access-Control-Allow-Headers", "access-control-allow-origin, access-control-allow-headers")
85+
c.Header("Access-Control-Allow-Headers", "access-control-allow-origin, access-control-allow-headers, content-type")
8686
c.JSON(http.StatusOK, struct{}{})
8787
}

0 commit comments

Comments
 (0)