Making REST API requests from chrome extension to replit


I am trying to make a ultra simple app (chrome extension) connecting to an ultra simple server (replit).

Replit code using express:
app.get('/hello, (req, res) => res.send(“hello world”));

chrome extension (Service_worker, manifest v3):
res = await fetch(“”);

But this does not seem to work. Is there anything i need to do or configure on the server side to allow for requests from a chrome extension ? The server itself works when using a a browser.

has someone setup something similar?

1 Like

Make sure your fetching the right link, it should be https://<repl name>.<username> If you could post a link to your server that might help the community help with your issue.

Hello I have set up something famillair. Is there an error you get? could you share the full code (just view not edit) with us?

1 Like