Skip to content

Commit

Permalink
Explain worker needing CORS, COOP, COEP
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Nov 27, 2023
1 parent dfaadaf commit cac3775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import random
from polyscript import XWorker

print("launch worker")
# Workers only work when server sets CORS, COOP, COEP headers
# See https://jeff.glass/post/whats-new-pyscript-2023-11-1/ for more details
worker = XWorker("/examples/worker.py", config="/examples/worker.toml", type="micropython")
print("worker", worker)

fan = ltk.Preformatted("")

Expand Down

0 comments on commit cac3775

Please sign in to comment.