Hello fellow developers and data scientists. I have a question about a 
problem with accessing the API deployed on the google app engine from the 
javascript app deployed on Heroku. 

When I access my API link on google chrome, it works properly. However, 
when I use my javascript app deployed on Heroku to call my API link, it 
sometimes does not work and return me the network error. 

I have followed the instruction on 
"https://cloud.google.com/appengine/docs/standard/python3/config/appref"; to 
enable the CORS access on my app API  in the app.ymal file on google app 
engine as the following  

runtime: python37instance_class: F4_1Ghandlers:
- url: /images
  static_dir: static/images
  http_headers:
    Access-Control-Allow-Origin: ‘*’

Similarly, I have also enabled the CORS access on my javascript app 
deployed on Heroku as shown in the picture attached. However, the problem 
still persists. I am not sure if it has to do with the way we set up our 
code or the google app engine server itself. If there is anything I could 
do besides what I have done I would love to hear that as well. Thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0a5daf81-3a94-4fe7-b5bb-0edfcb8a83f9%40googlegroups.com.

Reply via email to