<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "http://mydomain"
</FilesMatch>
</IfModule>
所以当我得到这个..
<VueTrix
class="editor1"
inputId="editor1"
v-model="form.complete_description"
@trix-file-accept="handleFile"
@trix-attachment-add="handleAttachmentAdd"
@trix-attachment-remove="handleAttachmentRemove"
/>