Giter Site home page Giter Site logo

Comments (8)

KlausSchaefers avatar KlausSchaefers commented on September 18, 2024

So you changed the ModelService to include the direct URL? I have nether tried this. I enable CORS, in the backend:

	/**
		 * Set body and cookie handler
		 */
		Router router = Router.router(vertx);
		router.route().handler(BodyHandler.create().setMergeFormAttributes(false));
		router.route().handler(CorsHandler.create("*")
				.allowedMethod(HttpMethod.GET)
				.allowedHeader("Access-Control-Request-Method")
				.allowedHeader("Access-Control-Allow-Credentials")
				.allowedHeader("Access-Control-Allow-Origin")
				.allowedHeader("Access-Control-Allow-Headers")
				.allowedHeader("Content-Type"));

But maybe there is something wrong. If you run the request with CURL or Postman they work?

from quant-ux.

KlausSchaefers avatar KlausSchaefers commented on September 18, 2024

Also, I cannot reach https://api.prototype.tikweb.com:8080/rest/status.com

from quant-ux.

SharifTanvir avatar SharifTanvir commented on September 18, 2024

I have changed ModelService but getting the error "Uncaught (in promise) TypeError: Failed to fetch" after login.

Use https://api.prototype.tikweb.com:8080/rest/status.json

from quant-ux.

KlausSchaefers avatar KlausSchaefers commented on September 18, 2024

I still cannot reach the server. I made a prototype te test if it is an CORs issue:

https://quant-ux.com/#/test.html?h=a2aa10aetVqsP3akLkz4ywFYBaIAuc5ExJdHjQpvoar4oL9RVy8CuHladcry&log=false

The 'test Direct' button is wired to your server, the proxy one to the live server through the proxy.

from quant-ux.

SharifTanvir avatar SharifTanvir commented on September 18, 2024

I am getting ok with both buttons.
and these value
Test Proxy => ok 3.2.1
Test Direct=> ok 3.0.4

from quant-ux.

KlausSchaefers avatar KlausSchaefers commented on September 18, 2024

SO, this looks like there is no CORS issue. Can you send me the developer tools errors? If you right click in the dev tools you can copy the request as curl. Can you send that to me?

from quant-ux.

KlausSchaefers avatar KlausSchaefers commented on September 18, 2024

Hi, how is your current status?

from quant-ux.

SharifTanvir avatar SharifTanvir commented on September 18, 2024

Sorry, i missed your last comment.
I have solved the issue. I am very thankful to you for your support.

from quant-ux.

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.