Comments (8)
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.
did you test this?
from ews-javascript-api.
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.
try this process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
from stack overflow
from ews-javascript-api.
Thanks it works now!
from ews-javascript-api.
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.
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.
@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)
- Error SoapFaultDetails message: '401 Unauthorized', HOT 8
- TypeScript errors when compiling (cannot find name PrivilegedUserId and more) HOT 4
- Usage React Native
- Failing to fetch .msg file attachment from ews exchange server ews-javascript-api HOT 4
- C# code works, but not its Node equivalent: 401 Unauthorized HOT 16
- Booking type causes sync to fail
- Specify certificate authority while sending request HOT 2
- nodejs 18: digital envelope routines::unsupported HOT 5
- Appointment.Bind sometimes return null Organizer HOT 2
- Possibility to set User-Agent HOT 4
- when creating an event in the calendar, the body is not added HOT 1
- UNABLE_TO_VERIFY_LEAF_SIGNATURE HOT 1
- Missing typescript declaration for CreateItem HOT 2
- how to retrieve strings from Extended Properties with more than 255 characters HOT 1
- Missing finally in promise declaration
- AWS WorkMail: 500 Error HOT 1
- Question: Can we create a new mailbox for an existing AD user using this library? HOT 3
- Cannot get attachment of .EML type HOT 1
- Appointment created by ews-javascript-api are shown in Monrovia timezone HOT 3
- Issue with @ewsjs/xhr and ews-javascript-api cann't read property of undefined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ews-javascript-api.