我对Laravel配置文件的更改不起作用
我一直在更改我的config/cors.php中的一些配置,这些更改已保存,并将其写入我的bootstrap/config.php文件中,但它不起作用。
例如,我将“ washe_methods”从 *更改为发布,但获取方法仍然可以使用我的代码(我的代码在本地服务器上)。
我将添加我的config/cors.php的图片,以查看我是否做错了什么。
谢谢。
I have been changing some configurations in my config/cors.php and these changes are saved and they been written in my bootstrap/config.php file, but it does not work.
For example I changed 'allowed_methods' from * to POST but GET method still work on my code(my code is on my local server).
I'm going to add a picture of my config/cors.php for you to see if I'm doing something wrong.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PHP工匠优化:清晰
然后重新启动您的当地人
php artisan optimize:clear
and then restart your localserver