kernel3

1.0.22 • Public • Published

npm install element-plus --save

后端跨域:


location ~ [^/]\.php(/|$)
{
    try_files $uri =404;
    fastcgi_pass unix:/tmp/php-cgi.sock;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    include /mnt/d/nginx/conf/fastcgi.conf;

    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    add_header 'Access-Control-Allow-Headers' '*';
}

#支持前端跨域
location / {
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    add_header 'Access-Control-Allow-Headers' '*';
	
    if (!-e $request_filename) {
       rewrite ^/(.+)$ /index.php/$1 last;
    }
}


Readme

Keywords

Package Sidebar

Install

npm i kernel3

Weekly Downloads

7

Version

1.0.22

License

ISC

Unpacked Size

18 kB

Total Files

10

Last publish

Collaborators

  • fazo