@@ -71,10 +71,10 @@ var utils = {
7171 }
7272 ] ;
7373
74- if ( options . get ( ' cors' ) ) {
74+ if ( options . get ( " cors" ) ) {
7575 defaultMiddlewares . unshift ( {
76- id : ' Browsersync CORS support' ,
77- route : '' ,
76+ id : " Browsersync CORS support" ,
77+ route : "" ,
7878 handle : utils . getCorsMiddlewware ( )
7979 } )
8080 }
@@ -133,17 +133,17 @@ var utils = {
133133
134134 return function ( req , res , next ) {
135135 // Website you wish to allow to connect
136- res . setHeader ( ' Access-Control-Allow-Origin' , '*' ) ;
136+ res . setHeader ( " Access-Control-Allow-Origin" , "*" ) ;
137137
138138 // Request methods you wish to allow
139- res . setHeader ( ' Access-Control-Allow-Methods' , ' GET, POST, OPTIONS, PUT, PATCH, DELETE' ) ;
139+ res . setHeader ( " Access-Control-Allow-Methods" , " GET, POST, OPTIONS, PUT, PATCH, DELETE" ) ;
140140
141141 // Request headers you wish to allow
142- res . setHeader ( ' Access-Control-Allow-Headers' , ' X-Requested-With,content-type' ) ;
142+ res . setHeader ( " Access-Control-Allow-Headers" , " X-Requested-With,content-type" ) ;
143143
144144 // Set to true if you need the website to include cookies in the requests sent
145145 // to the API (e.g. in case you use sessions)
146- res . setHeader ( ' Access-Control-Allow-Credentials' , true ) ;
146+ res . setHeader ( " Access-Control-Allow-Credentials" , true ) ;
147147 next ( ) ;
148148 }
149149 }
0 commit comments