Quasar项目在开发模式下工作。但是在使用quasar构建命令构建之后。它只加载index.html。
g52tjvyc1#
你需要一个.htaccess文件(index.html的根目录),里面包含:
RewriteEngine On <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> # RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.html [QSA,L]
仔细阅读Access-Control-Allow-Origin参考https://httpd.apache.org/docs/2.4/howto/htaccess.html
Access-Control-Allow-Origin
1条答案
按热度按时间g52tjvyc1#
你需要一个.htaccess文件(index.html的根目录),里面包含:
仔细阅读
Access-Control-Allow-Origin
参考https://httpd.apache.org/docs/2.4/howto/htaccess.html