Grimmy's Forum Posts

  • I'm saving some data that I dont want the user to be able to modify or copy in any way. I'm currently using the basic system.save command to do this but I have no idea where the file is saved on the end users PC and/or if its accessible and/or easy to modify or duplicate by the user.

    In an ideal world the user wont be able to touch it because I want to save stuff like in app purchases etc and I dont want to have to go with an online save ideally.

    So, is it secure/how hackable? ..and where is is it stored?

    EDIT: I'm actually using Construct 2 and posted in the wrong forum. Apologies, but hopefully its still just as relevant here.

    Thanks

  • I have 3 monitors and this happens to me ALL the time. Everytime I move the construct 2 window the dialogues wander off somewhere else. I cant keep hitting reset dialogues and restarting all the time, that's just nonsense. WHy isnt this fixed? (5 years after the original post) Is there another way? I tried using a third party package (display fusion) but that couldnt fix the issue either.

  • [quote:3rz3jtce]CORS needs to be set up on the server you are requesting data from, not from the construct app or the domain hosting the construct app. It is set in the hosting server's configuration files.

    Are you sure? Because when I disable cors locally on my browser, the data gets retrieved from the source successfully. This would indicate that the data provider is sending the message anyway and its my construct hosted server that is not able to receive it (or send the request) correctly.

    [quote:3rz3jtce]Is the name of your site "https://mysite.com"?

    no. but I put that there as an example

  • Nope, I tried putting it on a secure https server but I get the same error..

    Fetch API cannot load https://api.myapi.com/v2/licenses/verify/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://mysite.com' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.[/code:33wwskm1]
    
    Also Ive tried setting the request header itself in Construct before the request gets made...but that still gives me the error.
    
    What exactly am I doing wrong here?
  • I have tried adding the following to the index.html file before all other code..

    <?php
    header('Access-Control-Allow-Origin: *'); 
    ?>[/code:kwcmccz0]
    
    ..but this didn't work.
    Any ideas? Really stuck!
    Thanks
  • Okay, so I read the manual and various posts but I still don't understand where this needs to go:

    Does it go at the start of my index.htl file on the server?

    If so do i need to rename that to index.php?

    Do i make a new php file on my server?

    ...or something else?

    All the forum answers say I need to use this but none seem to say where it needs to go. Where does it go ?!?

    Please help.

    Thanks

  • I am using construct 2 to export html5 to coherent UI but when I do the transparent layers appear as black. Is this a known bug?

    I have used transparent layers in Coherent UI from other html5 software without issue.

  • FIXED!

    The reason PHP stopped was because I was messing with folder (not file) permissions and infact this WAS the root cause of the initial problem.

    For some reason, once I messed with the folder permissions the AJAX calls now work from inside the html page.

    Got there in the end. Hopefully this will help someone in the future too.

    Thanks again!

    <img src="smileys/smiley32.gif" border="0" align="middle" />

  • Hmm, I'm using Chrome & no weird extensions. :)

    For some reason even the php file has stopped working although I haven't changed it.

    Does it matter that I am using the free trial version?

  • okay thanks. I'll keep looking and post here when I figure it out.

    Thanks for your help!

  • The html file is on myserver.com/Uploader01 and the php file is in myserver.com/UploadTest.

    Can't see why there would be a security issue. DO they need to be in the same folder too?

  • The data file does contain the TEST1234 string so I do have permission and the PHP is fine.

    When I try the same with Construct 2 calling the php file it doesn't work. I even removed the & but still no success.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is the dropbox link to the file. The php on it's own works fine.

    dropbox.com/s/nnpq4aixls3hyz6/NoUpload.capx

  • Yeah, I already have a data.txt file there (in the same folder as the test.php file) but it doesn't update.

    I don't have any error information other than I am receiving an AJAX:On error message.

  • Cool, but i still cant get it working. (It still errors on the server)

    My path is:

    "http://myserver.com/test.php?myVar="&URLEncode(TextBox.Text)

    Is something wrong with that?

    Cheers