image upload with cross Origin issue
Question
I have checked all the issues history,but didin't find a way out.
i changed here to allow fetch to cross origin access.
my asset manager is fine
and here is my php code
also file uploaded successed

but it shows me those errors
and this is my console log

Answers (3)
hey,guys sorry to reply this late.I got another project of our company need to update in hurry last week.Anyway,the solution you guys provided works fine after i moved the files in same domain.But if you guys have time please take a look at how we can upload images in cross domain condition.Thanks in advanced! 👍
Hi @vtista
The response from your php code should be like this :
[{"type":"image","src":"localhost/test/img/wechat.jpg","height":"350","weight":"250"}],
Trying removing the slashes like this :
echo json_encode($response,JSON_UNESCAPED_SLASHES);
For more reference you can check my code Here
@mekamleshk Thanks a lot,i just did as you said,but the issue was still there

do you have any idea? :)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1294
How to add category for default block manager?
@artf I want put all default blocks to category named "Basic". But I can't find any documents about it. I use editor.BlockManager.getAll()....
Issue #401
Cannot upload images
Hi, while uploading an image through asset manager, I get the following error: Assetmanager configuration at editor init looks like Folder...
Issue #392
Define selected class.
Hello @artf , Is there a way to automatically select the class that is created on elements with custom styles. I'm currently trying to dyna...
Issue #789
getComponents doesn't return components
It's as if it's not parsing down the DOM Reproduce. View console log https://codesandbox.io/s/lxl7x2mnq You can see there are way more than...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.