From 3222c0df844e3659a6da3c25b6da2519003e6c71 Mon Sep 17 00:00:00 2001 From: "Elwin.Zhu" <67253890@qq.com> Date: Tue, 15 Sep 2020 16:20:56 +0800 Subject: [PATCH] Modify the FileUpload.csp in simple_example to avoid CORS (#573) --- examples/simple_example/FileUpload.csp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simple_example/FileUpload.csp b/examples/simple_example/FileUpload.csp index e3ce8669..f595dfed 100644 --- a/examples/simple_example/FileUpload.csp +++ b/examples/simple_example/FileUpload.csp @@ -8,7 +8,7 @@ //File uploading method function UpladFile() { var fileObj = document.getElementById("file").files[0]; // js get file object - var url = "http://localhost:8848" + "/api/attachment/upload"; + var url = "/api/attachment/upload"; var form = new FormData(); // FormData object form.append("file", fileObj); // File object @@ -84,4 +84,4 @@ - \ No newline at end of file +