I am trying to use AJAX flags in an iFrame (more specifically, Facebook app) but receive the following error:
An HTTP error 0 occurred.
URL?fb_canvas_destination=node%2F18&token=ead76052ee4ff3a83875cb2ffbed11b9
I suspect it is because of a cross-origin (cross-domain) issue.
Can AJAX flags used or will I be forced to use normal links?
Comments
Comment #1
joachim commentedHow are you obtaining the token for the link?
Comment #2
notluap commentedThe token is being supplied by Views; however, I have this error when flagging content directly on a node as well.
Comment #3
joachim commentedIt sounds like your setup is too complex for me to reproduce. Can you try debugging what happens on the server during the ajax request?
Comment #4
notluap commentedAJAX flags do not work in iFrames (facebook canvas app) when third party cookies are disabled in the browser. If you enable third party cookies, they work. However, most browsers are switching to disabled third party cookies by default now, so flag links are broken for most users.
Comment #5
joachim commentedIs that AJAX flags for anon users, or for all users?
I'm pretty sure that for anon users, the cookie is essential.
Comment #6
notluap commentedThis is for authenticated users.
Comment #7
joachim commentedI'm really not familiar with how Flag uses cookies at all, but I would expect that if they're being for auth users too, then there's a reason for it.
Comment #8
joachim commentedClosing old bugs where no further information was supplied.