s5ddev's Recent Forum Activity

  • I figured out the issues. CORS was not configured on the API to accept calls from preview.construct.net. This resulted in the the browser rejecting the OPTIONS call. Once I fixed that, construct then completed the OPTIONS call and followed it up with the POST call.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a C# API to track leaderboard scores. It expects a json as its content-type.

    I am trying to use AJAX to POST to the scoreboard.

    I have the following events:

    When I run my layout in preview and hit these events, fiddler is showing me that the method used is OPTIONS, not POST. If I remove the Set Header event, fiddler shows me that it correctly POSTs, but is then rejected with a 415 as x-www-form-urlencoded is not an expected content-type.

    Is this a bug? Am I missing something?

s5ddev's avatar

s5ddev

Member since 11 May, 2022

None one is following s5ddev yet!

Trophy Case

  • 2-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies