@adminforth/upload 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -11,5 +11,5 @@ custom/preview.vue
11
11
  custom/tsconfig.json
12
12
  custom/uploader.vue
13
13
 
14
- sent 46,106 bytes received 134 bytes 92,480.00 bytes/sec
15
- total size is 45,617 speedup is 0.99
14
+ sent 46,119 bytes received 134 bytes 92,506.00 bytes/sec
15
+ total size is 45,637 speedup is 0.99
@@ -78,6 +78,7 @@ onMounted(async () => {
78
78
  try {
79
79
  const response = await fetch(url.value, {
80
80
  method: 'HEAD',
81
+ mode: 'cors',
81
82
  });
82
83
  const ct = response.headers.get('Content-Type');
83
84
  if (ct) {
@@ -78,6 +78,7 @@ onMounted(async () => {
78
78
  try {
79
79
  const response = await fetch(url.value, {
80
80
  method: 'HEAD',
81
+ mode: 'cors',
81
82
  });
82
83
  const ct = response.headers.get('Content-Type');
83
84
  if (ct) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",