I’m currently implementing the Google Ads API using Node.js. Everything 
works well in my local development environment, but the following issues 
occur after deploying to a live HTTPS server.
issue Summary 
   
   1. 
   
   *Localhost*: API requests work successfully
   2. 
   
   *Production (HTTPS server)*:
   - 
      
      API requests fail with error:
      Failed to fetch 
      - 
      
      JavaScript console logs show:
      Headers is not defined
      3. 
   
   *Browser warning in developer tools*:
   Mixed Content: The page was loaded over HTTPS, but requested an insecure 
   resource (favicon via HTTP). This request has been blocked; the content 
   must be served over HTTPS. 
   
Questions 
   
   - 
   
   What causes the Headers is not defined error when using fetch on the 
   server side?
   - 
   
   Are there specific CORS or request header configurations required for 
   production use with Google Ads API?
   - 
   
   Is there a best practice for securely using fetch or any recommended 
   method to avoid these issues?
   
Please advise on how to resolve this. Let me know if you need a minimal 
code sample or more details.

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/ed807b57-8857-4e3a-858e-0e22b521fcden%40googlegroups.com.
  • AP... 김채원
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to