1. Hey,
    I wanted to work on my project today and noticed, that my API requests aren't working anymore. Instead of the JSON it now responds with the raw HTML (checking the browser). This wasn't the case for me yesterday, and I was wondering why this is happening, since other sites like sky lea is still working.

    This is what my request and response looks like (Postman):
    response.png

    Postman and axios return HTML. Normal request via browser works just fine.

    Would be great if someone could help me. Thanks in advance.
     
    #1
  2. Can't reproduce this, perhaps it was an error?
     
    #2
    Last edited: Jan 5, 2020
  3. I will try this tomorrow and update you guys
     
    #3
  4. Aaron1998ish

    Aaron1998ish {"title" : "SteveOP-erator", "teams" : ["bugs"]}

    aaron1998ish
    Mod
    Rebel ΘREBLΘ
    Co-Owner
    Messages:
    1,570
    Cloudflare shouldn't be checking the API calls like that, could it be due to you not using https for your requests?
     
    #4
    • Agree Agree x 1
    • Useful Useful x 1
  5. I guess that's the problem, I can reproduce the error if I change https to https in postman
     
    #5
  6. Yeah, that was the problem. Didn't think that cause such an error. Thanks
     
    #6

Share This Page