mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 16:33:25 +00:00
Remove requestDomain from messaging
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user