Open 6DammK9 opened 7 years ago
If it is just minor problems about setting the server (nginx?), I will close the issue. 502 disappeared by no reason.
yes it sometimes occurring, and some of them was our bug. I thought it was solved... I ll check it again
Still bugy.
I found that one of the server is problem and solved it now but still I dont know why...
paintschainer1.preferred.tech should not be the one returning for requests from http://**paintschainer**.preferred.tech
self.send_header("Access-Control-Allow-Origin", "*")
this should work if the program is both loaded from paintschainer1 and paintschainer though :)
is there some upstream server settings mismatches? @taizan
hmm we allowing CROS with
self.send_header("Access-Control-Allow-Origin", "*")
but in paintschainer1, it is not working in some of browsers
maybe because paintschainer1 equals paintschainer root....?
Not sure what is exactly the host - server relationship, From my experience, it could be solved by Browser > Server 1 API > (Server 2 API > Server 2 return) > Server 1 return > Browser. Simple redirect + header will leads to CROS stuff (as "some browsers" managed to keep track the requesting link). But this could be tedious to code. Maybe there are better solutions? PS: Want to join slack: 6DammK9@gmail.com
XMLHttpRequest cannot load http://paintschainer1.preferred.tech/post. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://paintschainer.preferred.tech' is therefore not allowed access. The response had HTTP status code 502.
Failed to load resource: the server responded with a status of 502 (Bad Gateway)
... I know nothing about the public server so I can't say it is just a typo. PS: Chrome 56 from a office PC.