You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CORS issue when running the firenotes example #819
I followed the instruction on the firenotes page to deploy the app to app engine
Describe the issue
When It's trying to save the note, it throws the following error in the browser console:
Failed to load resource: the server responded with a status of 500 ()
my-prototype.appspot.com/:1 XMLHttpRequest cannot load https://backend-dot-my-prototype.appspot.com/notes. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://my-prototype.appspot.com' is therefore not allowed access. The response had HTTP status code 500.
Just want to update this thread. After looking at the log, the CORS was not the culprit that causing this to fail. After starting from fresh, I was able to get it working. I may have run the pip install packages at the wrong directory and causing some missing libraries. But it's not obvious to catch at all.
Activity
theacodes commentedon Feb 22, 2017
@paktree can you try using
backend.my-prototype.appspot.cominstead?paktree commentedon Feb 22, 2017
@jonparrott. Ah, that makes sense. I'll give it a try, thanks!
theacodes commentedon Feb 22, 2017
Let me know. It probably wouldn't kill us to add CORS headers to the backend anyway.
paktree commentedon Feb 23, 2017
@jonparrott no luck on that, I'm getting some certificate error after changing -dot- to "."
I found a SO that looks like -dot- is intended to get around the certificate issue: http://stackoverflow.com/questions/10283628/appengine-how-to-not-get-a-certificate-warning-with-backend-secure-connection
How do I add CORS headers to the backend? Or there is something I am missing?
paktree commentedon Feb 24, 2017
Just want to update this thread. After looking at the log, the CORS was not the culprit that causing this to fail. After starting from fresh, I was able to get it working. I may have run the pip install packages at the wrong directory and causing some missing libraries. But it's not obvious to catch at all.
Thanks!
ryanmats commentedon Feb 24, 2017
@paktree great, thanks for the update. Let us know if you have any other questions or comments about the code samples!
build: treat warnings as errors (#819)
build: treat warnings as errors (#819)
feat: Custom Placement Config Dual Region Support (#819)