Skip to content
Snippets Groups Projects
Commit 1a80d4d2 authored by Alexey Lunin's avatar Alexey Lunin
Browse files

Apply polyfill

parent dbf4c062
Branches
Tags
1 merge request!83Exchange 2016 support
......@@ -35,7 +35,14 @@ import {
byteArrayToBase64
} from "../utilities/stringUtilities";
const libmime = require("libmime");
const webcryptoLiner = require("webcrypto-liner/build/index");
const pkijs = require("pkijs");
pkijs.setEngine(
"webcrypto-liner",
webcryptoLiner.crypto,
new pkijs.CryptoEngine({ name: "webcrypto-liner", crypto: webcryptoLiner.crypto, subtle: webcryptoLiner.crypto.subtle })
);
const asn1js = require("asn1js");
const pvutils = require("pvutils");
......
......@@ -10,6 +10,13 @@ module.exports = merge(common, {
port: 9000,
headers: {
'Access-Control-Allow-Origin': '*'
},
proxy: {
'/api': {
target: 'https://alexeylunin.dev.vereign.com',
secure: false,
changeOrigin: true
}
}
},
plugins: [
......
......@@ -7,8 +7,6 @@ module.exports = {
"viamapi-client": ["core-js/fn/promise", "./src/viamapi-client.js"],
"viamapi-iframe": [
"babel-polyfill",
'asmcrypto.js',
"webcrypto-liner",
"./src/iframe/viamapi-iframe.js"
]
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment