I have a Facebook app hosted on nginx. Faceboook fetches the data by
issuing a POST request for index.html before embedding it in their
canvas. My server replies with 404, instead of the expected 405. If it
was 405, I could fix things by adding “error_page 405 =200 $uri;” to the
configuration file, but for some reason it’s 404.
I can think of two ways of correcting the situation:
Find a way to have the server respond with 405 and then add the above
line. This is probably the correct way.
Respond with 200 when a POST request is issued for index.html.
Thanks, but I’m getting a 404, not a 405. Using the solution you linked
to would require all 404s to be 200, which is not a good idea. Any was
to limit this to just index.html?
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.