问题
We are currently implementing custom functions in our app, and have been unable to get POST requests working.
What we have tried:
- POST using fetch (exact function works in latest Chrome)
- POST using axios, and transpiling down (exact function works in latest Chrome)
- Adding and removing cors() middleware on our backend expressjs server
Are we missing an implementation detail? I read something brief about simple CORS, but wanted to reach out to see if there was a piece we are forgetting.
回答1:
Are you testing on Excel for Windows, or Excel Online (aka Excel on the Web)? Currently full CORS is not supported yet in custom functions if you are running it in Excel for Windows. However it should work if you run it in Excel Online and Excel for Mac.
来源:https://stackoverflow.com/questions/58396110/unable-to-get-post-request-working-in-excel-custom-functions