We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66e6ead commit 96d3934Copy full SHA for 96d3934
components/customjs/customjs.app.mjs
@@ -11,20 +11,26 @@ export default {
11
},
12
13
methods: {
14
+ _getBaseHeaders() {
15
+ return {
16
+ "Content-Type": "application/json",
17
+ "customjs-origin": "pipedream",
18
+ };
19
+ },
20
_makeRequest(opts = {}) {
21
const {
22
$ = this,
- headers,
23
+ headers = {},
24
...otherOpts
25
} = opts;
26
+
27
return axios($, {
28
...otherOpts,
29
method: "POST",
30
url: `https://e.customjs.io/__js1-${this.$auth.api_key}`,
31
headers: {
32
+ ...this._getBaseHeaders(),
33
...headers,
- "Content-Type": "application/json",
- "customjs-origin": "pipedream",
34
35
responseType: "arraybuffer",
36
});
0 commit comments