Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跨域 的jsonp 请求 报错 #33

Open
jimb55 opened this issue Mar 6, 2017 · 1 comment
Open

跨域 的jsonp 请求 报错 #33

jimb55 opened this issue Mar 6, 2017 · 1 comment

Comments

@jimb55
Copy link

jimb55 commented Mar 6, 2017

GET http://xxxx:2222/laravel-u-editor-server/server?action=config&callback=bd__editor__vpkvby

返回的是 {image:...},不是应该返回bd__editor__vpkvby({image:...})吗?
laravel-u-editor/src/Controller.php@server
case 'config': $result = $config; break;

@pengxianggui
Copy link

我也遇到同样的问题。但是我返回的是bd__editor__vpkvby({image:...}),感觉返回的没错,但是前端控制台报了一个错误:because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants