[R70] Ajax request doesn't work (Chrome/Mozilla)

Bugs will be moved here once resolved.

Post » Mon Dec 12, 2011 4:06 am

well, i'm not a real expert...
I know that facebook need the app to be in https.
If the user is in https and you app is in http.
it ask the user if he wants to go in http. and I don't want that.
So, i needed to have the ajax call in https too.

where do you put the "header" thing ?
And what does it means, or do ?

thx for the answer !
B
12
S
2
G
5
Posts: 73
Reputation: 3,570

Post » Mon Dec 12, 2011 5:34 am

header('Access-Control-Allow-Origin: *');

you put this at the top of the php file where you do your server connection

im just saying i didnt need the https to add my app to facebook so i dont need https ajax call...

i just followed the facebook c2 tutorial


ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Previous

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest