Coder Social home page Coder Social logo

Comments (6)

poloka avatar poloka commented on August 19, 2024

I do see in my console

Cross-Origin Read Blocking (CORB) blocked cross-origin response <host> with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.

Is there a way to pass the header Access-Control-Allow-Origin for these requests?

from node-jira-client.

dkokic avatar dkokic commented on August 19, 2024

@poloka Am I wrong in assumption that you are trying to run this on client (in web browser)? ;-)

from node-jira-client.

poloka avatar poloka commented on August 19, 2024

@dkokic you are correct. I have created a simple react app using create-react-app and tried to implement the jira-client. So I'm running this from localhost.

from node-jira-client.

pioug avatar pioug commented on August 19, 2024

"Cross-Origin" things usually needs a server configuration. It's between the browser and the server. I am afraid there is nothing we could solve in the scope of this module.

Moreover, node-jira-client is build on top of request and request-promise https://www.npmjs.com/package/request and I don't think they are designed to work inside a browser..

There is certainly a way to refactor everything and make it work in a browser though.

from node-jira-client.

Ahmar828 avatar Ahmar828 commented on August 19, 2024

@pioug did you find any solution? i am having same issue.

from node-jira-client.

pioug avatar pioug commented on August 19, 2024

@Ahmar828 Try this client https://github.com/MrRefactoring/jira.js. Seems like it is build on axios, so it may work both in browser and node. If you have blocked cross-origin response it can't be solve by any lib, you need to configure the endpoint server.

from node-jira-client.

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.