Cloud Storage - No 'Access-Control-Allow-Origin' header is present on the requested resource for AngularJS view

后端 未结 5 1505
名媛妹妹
名媛妹妹 2021-02-15 05:45

According to Chrome dev tools, my requests to get my html partials have the origin header https://site-name-here.com and request header GET.
I have the following JSON file s

5条回答
  •  天涯浪人
    2021-02-15 06:44

    The following got it working for me:

    [
        {
          "origin": ["https://site-name-here.com"],
          "responseHeader": "*",
          "method": ["GET"],
          "maxAgeSeconds": 3600
        }
    ]
    

提交回复
热议问题