DEV Community

Discussion on: How To Build A Chrome Extension NEW Manifest V3

Collapse
 
jjslocum3 profile image
jjslocum3

Related to Manifest V3, I can't find anything on the web about how to connect out to an API from within an extension. V2 Content Security Policy has been nerfed. Have you any advice on how to do this? Or even where to look for info?

Collapse
 
krizer54 profile image
krizer54 • Edited

use fetch() function , or try to watch this videos may it helps you !
youtube.com/c/RustyZone/videos

Collapse
 
pastuh profile image
pastuh

I think you can just listen for messages in 'background.js'
(like always, at the end use: return true)
And use 'fetch API' , which responds with results