输入你想要找的课程名称
{{ ICP }}

看直播
System Error

[2] ErrorException in CORS.php line 11

Cannot modify header information - headers already sent by (output started at /www/wwwroot/php/runtime/classmap.php:1)

  1. namespace app\common\behavior;
  2. use think\Response;
  3. class CORS
  4. {
  5. public function appinit(&$params = null, &$extra = null)
  6. {
  7. header('Access-Control-Allow-Origin: *');
  8. header("Access-Control-Allow-Headers: token, Origin, X-Requested-With, Content-Type, Accept, Cookiew, time, cookiew");
  9. header('Access-Control-Allow-Methods: POST, GET, DELETE, PUT, PATCH, OPTIONS');
  10. if (request()->isOptions()) {
  11. exit();
  12. }
  13. }
  14. }

Call Stack

  1. in CORS.php line 11
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/php/app...', 11, ['params' => null, 'extra' => null])
  3. at header('Access-Control-Allow...') in CORS.php line 11
  4. at CORS->appinit(null, null) in Hook.php line 137
  5. at Hook::exec('app\common\behavior\...', 'app_init', null, null) in Hook.php line 95
  6. at Hook::listen('app_init') in App.php line 223
  7. at App::initCommon() in App.php line 82
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/php/thi...') in index.php line 32

Environment Variables

GET Data

s
/wap/index/index.html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_IF_MODIFIED_SINCE
Sat, 13 Jul 2024 15:58:28 GMT
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_HOST
chalston.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
chalston.com
SERVER_PORT
443
SERVER_ADDR
172.21.16.3
REMOTE_PORT
40334
REMOTE_ADDR
44.192.49.72
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/php/public
DOCUMENT_URI
/index.php
REQUEST_URI
/wap/index/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/wap/index/index.html
SCRIPT_FILENAME
/www/wwwroot/php/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1726744093.3255
REQUEST_TIME
1726744093
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/php/public/../application/
PUBILC_PATH
/
INSTALL_DATE
1534816243
SERIALNUMBER
70nr0t
SPECIAL_TYPE
{ "1": "\u56fe\u6587\u4e13\u9898", "2": "\u97f3\u9891\u4e13\u9898", "3": "\u89c6\u9891\u4e13\u9898", "4": "\u76f4\u64ad\u4e13\u9898", "5": "\u4e13\u680f\u4e13\u9898", "6": "\u8f7b\u4e13\u9898" }
SPECIAL_IMAGE_TEXT
1
SPECIAL_AUDIO
2
SPECIAL_VIDEO
3
SPECIAL_LIVE
4
SPECIAL_COLUMN
5
SPECIAL_OTHER
6
SPECIAL_SEVEN
7
SPECIAL_STORE
8
PAY_TYPE
[ "\u514d\u8d39", "\u4ed8\u8d39", "\u52a0\u5bc6" ]
PAY_NO_MONEY
0
PAY_MONEY
1
PAY_PASSWORD
2
MEMBER_PAY_TYPE
[ "\u514d\u8d39", "\u4ed8\u8d39" ]
MEMBER_PAY_NO_MONEY
0
MEMBER_PAY_MONEY
1
THINK_VERSION
5.0.24
THINK_START_TIME
1726744093.3261
THINK_START_MEM
419264
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/php/thinkphp/
LIB_PATH
/www/wwwroot/php/thinkphp/library/
CORE_PATH
/www/wwwroot/php/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/php/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/php/
EXTEND_PATH
/www/wwwroot/php/extend/
VENDOR_PATH
/www/wwwroot/php/vendor/
RUNTIME_PATH
/www/wwwroot/php/runtime/
LOG_PATH
/www/wwwroot/php/runtime/log/
CACHE_PATH
/www/wwwroot/php/runtime/cache/
TEMP_PATH
/www/wwwroot/php/runtime/temp/
CONF_PATH
/www/wwwroot/php/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false