无法获得POST请求在Excel自定义函数中工作 [英] Unable to get POST request working in Excel custom functions

查看:136
本文介绍了无法获得POST请求在Excel自定义函数中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们当前正在我们的应用程序中实现自定义功能,并且无法使POST请求正常工作.

We are currently implementing custom functions in our app, and have been unable to get POST requests working.

我们尝试过的事情:

  • 使用抓取功能进行开机自检(确切的功能在最新的Chrome浏览器中有效)
  • 使用axios进行POST,然后向下转换(确切的功能在最新的Chrome中有效)
  • 在我们的后端expressjs服务器上添加和删除cors()中间件

我们是否缺少实现细节?我读了一些有关简单CORS的简短文章,但想联系我们看看是否有一件遗忘的内容.

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.

推荐答案

您是否正在Windows版Excel或Excel Online(即Web上的Excel)上进行测试?当前,如果您在Excel for Windows中运行完整的CORS,则自定义功能尚不支持它.但是,如果您在Excel Online和Excel for Mac中运行它,它应该可以工作.

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.

这篇关于无法获得POST请求在Excel自定义函数中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆