Fixed CORS issue with dev server.

This commit is contained in:
Antoine Nguyen
2018-10-05 14:06:59 +02:00
parent 9bebc8b04e
commit 05ea4ad6bb
4 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -42,10 +42,13 @@ const devWebpackConfig = merge(baseWebpackConfig, {
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
},
headers: {
'Access-Control-Allow-Origin': '*'
}
},
plugins: [
new webpack.DefinePlugin({
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/dev.env')
}),
new webpack.HotModuleReplacementPlugin(),
+1
View File
@@ -13,6 +13,7 @@
"build": "node build/build.js"
},
"dependencies": {
"@mdi/font": "^2.2.43",
"buefy": "^0.6.5",
"js-cookie": "^2.2.0",
"vue": "^2.5.2",
+2 -2
View File
@@ -9,10 +9,10 @@
</p>
<ul class="menu-list">
<router-link tag="li" :to="{ name: 'DomainList' }">
<a><b-icon pack="fas" icon="user"></b-icon> Domains</a>
<a>Domains</a>
</router-link>
<router-link tag="li" :to="{ name: 'DomainList' }">
<a>Identities</a>
<a><b-icon icon="account"></b-icon>Identities</a>
</router-link>
<router-link tag="li" :to="{ name: 'DomainList' }">
<a>Logs</a>
+1
View File
@@ -1,6 +1,7 @@
import Vue from 'vue'
import Buefy from 'buefy'
import 'buefy/lib/buefy.css'
import '@mdi/font/css/materialdesignicons.css'
import Cookies from 'js-cookie'