ElForastero / react-browser-extension-boilerplate

🎉 React / Preact X browser extension boilerplate for the most popular browsers (Chrome, Firefox, Opera, new Edge and other Chromium-based browsers)
MIT License
124 stars 26 forks source link

AJAX Requests in Chrome throw "FAILED TO LOAD RESOURCE: FILE NOT FOUND" #7

Closed bwasilewski closed 5 years ago

bwasilewski commented 5 years ago

Hey there, I absolutely love the project you've set up here, got me up and running very quickly however I noticed that while ajax requests to my localhost backend "just work" in firefox, the same can't be said for Chrome. No matter what I do I can't seem to get Chrome to make a successful ajax call to my backend. Is there something I need to do in the manifest? Thanks in advance!

EDIT: So after more googling it turns out that I was using the chrome.extension.getURL method when I shouldn't have been since I'm trying to use an absolute (not relative) path. Sorry to bother you with this!