
Enter your 6-digit PIN

Turn your website into Android, iPhone and Windows apps
Does your project call its own server, for example fetch('/api/movies')?
const ORIGINS = ["https://localhost", "capacitor://localhost", "http://localhost", "app://localhost"];
export async function onRequest({ request, next }) {
const o = request.headers.get("Origin");
const ok = ORIGINS.includes(o);
const h = {
"Access-Control-Allow-Origin": o,
"Access-Control-Allow-Methods": "GET,POST,PUT,DELETE,OPTIONS",
"Access-Control-Allow-Headers": "Content-Type,Authorization",
Vary: "Origin",
};
if (request.method === "OPTIONS") return new Response(null, { status: 204, headers: ok ? h : {} });
const r = await next();
if (!ok) return r;
const n = new Response(r.body, r);
for (const k in h) n.headers.set(k, h[k]);
return n;
}
Already have a functions/_middleware.js file? Do not replace it. Add the ORIGINS line and the checks into your existing file, or ask your developer to merge them.
Connect your GitHub account, choose a repository and tap Done.
All pages, styles, scripts and images are copied into the app.
The page the app opens first. Leave empty to open index.html.
PNG, square, at least 1024×1024 px, no transparency.
Only needed if your project calls its own server, like fetch('/api/movies'). If it does not, leave both boxes as they are. With the Website source, your website address is used automatically.
Apps you built. Share the link so others can download them.