Facebook API CORS errors.

Get help using Construct 2

Post » Wed May 07, 2014 10:44 pm

I've created a game which i host on MS Azure websites. I hooked the app up to facebook and it works... I have a backend API which i send data to and from. That all works well but I went though the appdashboard process on facebook and got denied, it turns out am getting Cross Origin Resource Sharing (CORS) errors. See pic below.

corsissue.png


I tried sending a web.config file with my construct2 app with the following custom headers but that seems to blow up the app completely.

<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>

I am running via HTTPS and have a verisign cert on the webserver so i dont think this is a protocol mismatch issue... I'm just lost at what to try next and unfortunately this is a pretty specific error and I'm not sure if anyone is going to be able to help much. If you have any thoughts I'd love to hear them... my forehead is getting pretty flat from beating my head against the wall. TY.
You do not have the required permissions to view the files attached to this post.
B
9
S
2
G
4
Posts: 21
Reputation: 2,905

Post » Thu May 08, 2014 12:36 am

I noticed I am getting this same type of error in development mode as well.
B
9
S
2
G
4
Posts: 21
Reputation: 2,905

Post » Fri May 16, 2014 2:33 am

I figured out the issue... it was a browser extension (Lastpass) preventing any sort of cross site activity.
B
9
S
2
G
4
Posts: 21
Reputation: 2,905


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, jorgmaquoi, kiki4construct and 23 guests