Facebook API CORS errors.

0 favourites
  • 3 posts
From the Asset Store
7 Errors
$15 USD
7 Errors is a game where you have to find the 7 mistakes before time runs out. Can you find all 7? Have fun looking.
  • 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.

    [attachment=0:3j8pxtzw][/attachment:3j8pxtzw]

    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.

  • I noticed I am getting this same type of error in development mode as well.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I figured out the issue... it was a browser extension (Lastpass) preventing any sort of cross site activity.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)