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

后端 未结 2 1847
小蘑菇
小蘑菇 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:28

    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

    0 讨论(0)
  • 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: "*"
    
    0 讨论(0)
提交回复
热议问题