Skip to content

Commit cab206a

Browse files
committed
troubleshooting
1 parent fdd3dee commit cab206a

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

partykit.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
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
}

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
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>

src/server.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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 }));

0 commit comments

Comments
 (0)