Git Product home page Git Product logo

Comments (8)

gautamsi avatar gautamsi commented on May 19, 2024

You may not have "Basic Authentication" enabled on ews virtual directory, it is not enabled by default. you have to enable this after configuring server.

following command help enable basic authentication.

Set-WebServicesVirtualDirectory -Identity Contoso\EWS* -BasicAuthentication $true

make sure you know what you are doing before running above script, exposing basic auth without SSL may expose your credential to wild.

I have not tested untrusted certificate with ews-javascript-api you can do certain node hack or just trust the self signed certificate on your client machine where you are testing this.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

did you test this?

from ews-javascript-api.

guderkar avatar guderkar commented on May 19, 2024

Hi I have the exact same problem. I belive it is caused by not trusting server cert. I also tried C++ api and I had problem with certificate but there was an option to disable certificate check and it works. I don't know how to disable certification check in this api.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

try this process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; from stack overflow

from ews-javascript-api.

guderkar avatar guderkar commented on May 19, 2024

Thanks it works now!

from ews-javascript-api.

guderkar avatar guderkar commented on May 19, 2024

I have one more question. How can I make the script work when I open index.html in browser. I tried browserify but no luck.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

browser has XHR cross site limitation, Exchange does not support HTTP OPTION verb, no point using browser. you can use it in nw.js or in ElectronJS projects as npm module

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

@guderkar see #190 fro browser specific detail, you need to disable CORS if you want to test in browser. works in Electron's renderer process

from ews-javascript-api.

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.