Git Product home page Git Product logo

Comments (11)

1001v avatar 1001v commented on August 16, 2024 1

Https did the trick, thank you.

from api.minetools.eu.

McLive avatar McLive commented on August 16, 2024

Hi,

why do you need jsonp?
MineTools supports Cross-Origin Resource Sharing. That should be enough these days.

from api.minetools.eu.

1001v avatar 1001v commented on August 16, 2024

Well, my browser says, no access-control-allow-origin header in your server response. That problem appeared about two months ago, i think. So i thought something changed in api policy.

from api.minetools.eu.

McLive avatar McLive commented on August 16, 2024

What browser and version do you use?

I do see that header in my browser.

20160911223407

from api.minetools.eu.

1001v avatar 1001v commented on August 16, 2024

That is chrome for linux.

from api.minetools.eu.

McLive avatar McLive commented on August 16, 2024

You should try updating it to the latest version.
I don't really understand why you shouldn't have the header because it is definitely there.

from api.minetools.eu.

1001v avatar 1001v commented on August 16, 2024

Strange. Probably this's a bug (or feature) with legacy angularjs's $http service, because i have reports about the same code working in other people's chrome browsers sometimes. Probably some security updates for legacy version have appeared throw cdn.
I think i'll need some more time to deal with this. Thanks for quick answers, anyway.

from api.minetools.eu.

McLive avatar McLive commented on August 16, 2024

Which chrome version are you running? I just tried your application and it works fine for me.

I'm running chrome Version 52.0.2743.116 m

from api.minetools.eu.

1001v avatar 1001v commented on August 16, 2024

My version is 53.0.2785.92 (64-bit), but i have this problem in any browser, if i use my angular app. If i access api directly, everything ok with headers. I just thought you've stoped responding cross-domain requests when i saw browser became to block requests. So it's my-side problem, i think.

from api.minetools.eu.

McLive avatar McLive commented on August 16, 2024

Hmm that's really weird. You could try to use the https URL to connect to the API because you save the redirect from http zu https then.

from api.minetools.eu.

McLive avatar McLive commented on August 16, 2024

Awesome. I also just added the CORS header to the redirect from http to https. Never knew that is required.

Thanks for reporting that issue.

from api.minetools.eu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.