You need to use EasyEDA editor to create some projects before publishing
local auto router doesn't work due to CORS
279 1
mightycoco 11 months ago
Since some recent update of chrome the local auto router isn't accessible anymore due to CORS (Cross-Origin-Resource-Sharing) Rest requests to a resource not hosted on the same domain requires specific Access-Control-Allow-* headers to be responded from the server (the local auto router in this case) The request Origin is [https://easyeda.com](https://easyeda.com). The local server must whitelist this domain in the Access-Control-Allow-Origin header and probably also whitelist the Access-Control-Allow-Headers Error in Developer Console of chrome: `Access to fetch at '`[`http://127.0.0.1:3579/api/whois?version=6.5.23`](http://127.0.0.1:3579/api/whois?version=6.5.23)`' from origin '`[`https://easyeda.com`](https://easyeda.com)`' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.`
Comments
mightycoco 11 months ago
As a workaround this helped: [https://stackoverflow.com/questions/71018461/private-network-access-problem-w-disabled-web-security-request-had-no-target-i](https://stackoverflow.com/questions/71018461/private-network-access-problem-w-disabled-web-security-request-had-no-target-i)<br> <br> I've seen in com.easyeda.router.WhoIs that the Access-Control-Allow-Origin should have been set, but it didn't show up in the XMLHttpRequest response in the browser (Edge/Chrome). I'm not sure, if this header in Jettys hould be accessed case sensitive? The browser sends "Origin": "[https://easyeda.com](https://easyeda.com)" - but the header is accessed via req.getHeader("origin");  - usually this shouldn't matter, but I'mnot sure if this specific version of jetty works different?
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,建议访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice