Remove requestDomain from messaging

This commit is contained in:
mrjvs
2024-01-11 19:18:40 +01:00
parent e9023197c3
commit 9dab5bafa2
5 changed files with 6 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ type Response<T> = BaseResponse<{
const handler: PlasmoMessaging.MessageHandler<Request, Response<any>> = async (req, res) => {
try {
await assertDomainWhitelist(req.body.requestDomain);
await assertDomainWhitelist(req.sender.tab.url);
const response = await fetch(makeFullUrl(req.body.url, req.body), {
method: req.body.method,