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

后端 未结 2 1874
小蘑菇
小蘑菇 2020-12-15 23:31

I have a website hosted on App Engine (python2.7) and a linked blogger on the subdomain. I use shared resources on the blogger account. Specifically, I share icon fonts whic

2条回答
  •  情书的邮戳
    2020-12-16 00:29

    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: "*"
    

提交回复
热议问题