Skip to content

Commit a0d6b59

Browse files
author
Nitin Kumar
committed
Serve flasher assets with CORS for embedding on crowpilot.in
1 parent 626b46e commit a0d6b59

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release-ota.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ jobs:
6363
mkdir -p site/flash site/crowmotion
6464
cp flasher/index.html site/index.html
6565
66+
# CORS: let the flasher embedded on crowpilot.in fetch the
67+
# manifest and images cross-origin (Cloudflare Pages _headers).
68+
printf '/flash/*\n Access-Control-Allow-Origin: *\n' > site/_headers
69+
6670
# Complete flash images for the browser flasher (offset 0).
6771
esptool.py --chip esp32c3 merge_bin \
6872
-o site/flash/crowmotion-merged.bin \

0 commit comments

Comments
 (0)