我最近尝试用haxe/lime开发,我有两件事吓坏了我.1.我尝试通过此命令安装Lime:
> haxelib install lime
haxelib run lime setup
Run Code Online (Sandbox Code Playgroud)
并在"c:/"中自动安装Lime,我需要将文件移动到"lib"到haxe文件夹.
2.当我在FD中打开Lime项目时,我收到此错误:
> Called from ? line 1
Called from CommandLineTools.hx line 995
Called from CommandLineTools.hx line 23
Called from CommandLineTools.hx line 108
Called from CommandLineTools.hx line 190
Called from platforms/FlashPlatform.hx line 91
Called from /usr/lib/haxe/std/neko/_std/sys/io/File.hx line 30
Uncaught exception - Invalid field access : __s
Run Code Online (Sandbox Code Playgroud)
当我尝试构建项目时,我收到此错误:
> Warning: Could not find template file: flash/hxml
Warning: Could not find template file: flash/haxe
Fatal error: exception Failure("File not found bin/flash/haxe/release.hxml")
Build halted …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 js(浏览器)将图像上传到 imgur 并收到 CORS 错误:
Access to XMLHttpRequest at 'https://api.imgur.com/3/upload' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Run Code Online (Sandbox Code Playgroud)
但预检请求包含Access-Control-Allow-Origin标头:

我缺少什么?这是因为access-control-allow-credentials设置为true?