File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 55 "compatibilityDate" : " 2025-12-26" ,
66 "serve" : {
77 "path" : " public" ,
8- "build" : " src/client.js"
8+ "build" : " src/client.js" ,
9+ "cors" : true
910 }
1011}
Original file line number Diff line number Diff line change 7373 < input id ="stroke " name ="stroke " type ="color " />
7474 </ div >
7575 < div class ="canvas ">
76- < canvas id ="canvas "> </ canvas >
76+ < canvas style =" background: white " id ="canvas "> </ canvas >
7777 </ div >
7878 </ span >
7979 </ section >
Original file line number Diff line number Diff line change @@ -3,15 +3,6 @@ export default class CanvasServer {
33 this . room = room ;
44 }
55
6- onRequest ( req ) {
7- return new Response ( null , {
8- headers : {
9- "X-Frame-Options" : "ALLOWALL" ,
10- "Content-Security-Policy" : "frame-ancestors *" ,
11- } ,
12- } ) ;
13- }
14-
156 async onConnect ( connection ) {
167 const strokes = ( await this . room . storage . get ( "strokes" ) ) || [ ] ;
178 connection . send ( JSON . stringify ( { type : "init" , strokes } ) ) ;
You can’t perform that action at this time.
0 commit comments