本文介绍了在Google App Engine Blobstore下载器中启用CORS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用"send_blob"从Google App Engine Blobstore下载pdf.我该如何启用CORS?我尝试添加
I am using "send_blob" to download pdf from google app engine blobstore. How can i enable CORS for this?I have tried adding
self.response.headers.add_header("Access-Control-Allow-Origin", "*")
转到我调用send_blob的函数,但它不起作用.
to the function where i call send_blob but it is not working.
推荐答案
在
http://enable-cors.org/server_appengine.html
为blobstore下载处理程序添加了基本处理程序.
Added a basehandler for blobstore download handler.
这篇关于在Google App Engine Blobstore下载器中启用CORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!