diff --git a/dist/.htaccess b/dist/.htaccess index 6859942..e69de29 100644 --- a/dist/.htaccess +++ b/dist/.htaccess @@ -1,21 +0,0 @@ -# Deployed under /citpl_website/ - Apache must proxy API to the Node server. -# Requires: mod_rewrite, mod_proxy, mod_proxy_http, mod_headers -# Start Node on the host: npm run server (or pm2 start server/index.js) - - - RewriteEngine On - RewriteBase /citpl_website/ - - # Proxy API + uploads to Express (Node) on port 3001 - RewriteRule ^api/(.*)$ http://127.0.0.1:3001/api/$1 [P,L] - RewriteRule ^uploads/(.*)$ http://127.0.0.1:3001/uploads/$1 [P,L] - - -# Force-remove any inherited CSP/XFO headers, then set our own. - - Header unset X-Frame-Options - Header always unset X-Frame-Options - Header unset Content-Security-Policy - Header always unset Content-Security-Policy - Header always set Content-Security-Policy "frame-ancestors 'self' https://demo.cavinkare.in" - diff --git a/public/.htaccess b/public/.htaccess index 6859942..e69de29 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,21 +0,0 @@ -# Deployed under /citpl_website/ - Apache must proxy API to the Node server. -# Requires: mod_rewrite, mod_proxy, mod_proxy_http, mod_headers -# Start Node on the host: npm run server (or pm2 start server/index.js) - - - RewriteEngine On - RewriteBase /citpl_website/ - - # Proxy API + uploads to Express (Node) on port 3001 - RewriteRule ^api/(.*)$ http://127.0.0.1:3001/api/$1 [P,L] - RewriteRule ^uploads/(.*)$ http://127.0.0.1:3001/uploads/$1 [P,L] - - -# Force-remove any inherited CSP/XFO headers, then set our own. - - Header unset X-Frame-Options - Header always unset X-Frame-Options - Header unset Content-Security-Policy - Header always unset Content-Security-Policy - Header always set Content-Security-Policy "frame-ancestors 'self' https://demo.cavinkare.in" -