Nonetheless, I am including an example onCall function here which can be used to reproduce: The functions never get called as there is no error appearing on the function side. I have tried running both the Vue.js application and the emulator on Rosetta at the same time. I have read somewhere that the can sometimes just appear even if it's not really a CORS error and something else is off. Mode to 'no-cors' to fetch the resource with CORS disabled. If an opaque response serves your needs, set the request's 'Access-Control-Allow-Origin' header is present on the requested Response to preflight request doesn't pass access control check: No ' from origin ' has been blocked by CORS policy: When I try to run the emulator on a new 2020 MacBook Air (M1), I get this error in the client Vue.js application after triggering the function: This all works great when the emulator is run on either an Intel 2017 MacBook or a 2012 MacBook Pro. In order to test my onCall functions, I created a simple Vue.js application where I can log in and trigger the function on the emulator as I indicate with firebase.functions().useEmulator("localhost", 5001) in the main.js file where I import the Firebase library. I have a set of Firebase functions that I am trying to test locally by running the emulator with the command: firebase emulators:start -only functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |