I'm using flask to define functions in python, the idea is call it from a button in extension and show the output on it, did you know if still possible using xmlhttprequest to call a function? How to do it?
Asked
Active
Viewed 34 times
0
-
I think you need to be using `fetch` for this (on the chrome side) see: [make web request from chrome extension](https://stackoverflow.com/a/25107925/2052575) which mentions `xmlhttprequest` is deprecated. Then there are a number of tutorials/posts which discuss receiving fetch requests with flask. – v25 Jan 03 '22 at 15:42