訪問不存在的控制器
ajax請(qǐng)求 不能按照預(yù)期顯示 而是顯示CORS跨域
普通請(qǐng)求 可以顯示我設(shè)置的404返回內(nèi)容
設(shè)置了跨域中間件
http://www.wtbis.cn/doc/webman/middleware.html#%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82%E4%B8%AD%E9%97%B4%E4%BB%B6
設(shè)置了自定義404
http://www.wtbis.cn/doc/webman/others/custom-error-page.html#%E8%87%AA%E5%AE%9A%E4%B9%89404
ajax 請(qǐng)求能夠顯示我設(shè)置的 404 返回內(nèi)容
Workerman version:4.1.6 PHP version:8.0.27
PHP 8.0.27 (cli) (built: Jan 13 2023 10:38:04) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
with Zend OPcache v8.0.27, Copyright (c), by Zend Technologies