联系表单 PHP 文件无法在 Azure 上运行
我已经在Azure上创建了一个静态网站,从CSS到SCRIPS一切正常,但是我的ContactForm.php文件没有加载。
任何人都可以给我一些有关如何解决这个问题的建议吗?我已经尝试使用已上传的文档,但没有任何效果。
先感谢您
I have created a static website on Azure, everything works fine from CSS to scrips but my contactform.php file is not loading.
I have an order contact form that needs to access this file contactform.php and I get the error
Can anyone give me some advice on how do I solve this? I have tried already using documents that are uploaded by them but nothing worked.
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在访问文件时尝试使用错误的 http 动词,通常会出现错误“资源不支持指定的 Http 动词”。
网络服务上的很多内容需要使用
POST
动词来使用。尝试清除文件夹中未使用或旧的文件
指定文件夹名称时,请确保 URL 末尾有一个正斜杠。
尝试包含如下的 CORS 配置,
如果有帮助,请查找以下链接。
参考文献:
参考1,
参考2,
Ref3,
参考4
The error " The resource doesn't support specified Http Verb" usually occurs if you are trying to use wrong http verb while accessing the file.
A lot of content on webservices you need to use
POST
verb to consume.Try to clear unused or old files in the folder
While specifying the folder name make sure you have a forward slash on the end of URL.
Try including the CORS configuration as below,
Please find below links if they are helpful.
References:
Ref1,
Ref2,
Ref3,
Ref4