comphist / cora

A web-based, token-level annotation tool for non-standard language data
http://www.linguistics.rub.de/comphist/resources/cora/
MIT License
10 stars 6 forks source link

IFrame requests don't work properly #19

Closed mbollmann closed 7 years ago

mbollmann commented 9 years ago

Originally reported by: Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann)


At some point, requests made using iframes stopped working properly (the response text isn't pure JSON anymore).

Maybe the "Content-Type: application/json" header is responsible?

Either...


mbollmann commented 9 years ago

Original comment by Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann):


Fix #16

Handling of iFrame responses could be refactored into something nicer, but this will do for now.

mbollmann commented 9 years ago

Original comment by Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann):


Iframes render their response in an invisible browser frame (hence the name), for which "application/json" apparently isn't a valid content type.

Suggestion: