[Vuejs]-Safari won't load preflight CORS auth request (XHR) in Vue.js app on Apache

0👍

A preflight request should be confirmed with a 204 No Content HTTP code (along with the headers).

Try adding the following to your .htaccess, right underneath the Header directives:

RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=204,L]

Leave a comment