Here is the code: location ~ \.php$ { include snippets/fastcgi-php.conf; include fastcgi_params; fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_param SCRIPT_FILENAME /var/www/test/public$fastcgi_script_name; #CORS SETTINGS add_header 'Access-Control-Allow-Origin' '*' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS, DELETE'; add_header 'Access-Cby justcode - Nginx Mailing List - English
Here is the code: location ~ \.php$ { include snippets/fastcgi-php.conf; include fastcgi_params; fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_param SCRIPT_FILENAME /var/www/test/public$fastcgi_script_name; #CORS SETTINGS add_header 'Access-Control-Allow-Origin' '*' always;by justcode - How to...
![]() |
![]() |
![]() |
![]() |
![]() |