Access-Control-Allow-Origin header on Google App Engine

回眸只為那壹抹淺笑 提交于 2019-11-29 03:56:21

Added the following handler to my app.yaml on app engine and the import now works fine in all browsers.

handlers:
- url: /fonts
  static_dir: fonts
  http_headers:
    Access-Control-Allow-Origin: "*"

If your assets are stored in Google Cloud Storage, you can set the headers by following this guide: https://cloud.google.com/storage/docs/cross-origin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!