Making REST API requests from chrome extension to replit

Hi

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(“https://replit_account.repl.co/hello”);

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>.repl.co/hello. 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