Failed to load resource: the server responded with a status of 403 (Forbidden) in MERN Chat project - http

I am working on MERN chat app project. I have completed the backend and routes for authentication and login signup. My laptop is in service center. When I tried running the project on my friends laptop using all same credentials, I am getting following error
Failed to load resource: the server responded with a status of 403 (Forbidden)
I am able to register user through postman but not through the frontend of the app.
Also for logging in from the postman it is showing the same error
Please help!
Images :
[I am able to register new user through postman]
(https://i.stack.imgur.com/DYnrZ.jpg)
Error Image Postman
Error Image
I am not getting enough details. I searched everywhere. The project was running fine on my own machine.

Related

Getting a 403 forbidden error when trying to add a JDBC secondary user store in WSO2 APIM 3.2.0

I am getting a 403 forbidden error when trying to add a JDBC secondary user store in WSO2 APIM 3.2.0 from the carbon console. Though the connection is healthy on clicking the test button, but unable to add the user store. Any hints or suggestions to resolve this issue is appreciated.
Thanks,
Suman
I think need check server policy and permissions or application path .... because the HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.

IIS / Server misconfiguration ASP.Net Web API

I have IIS 8.5 on a server and a simple http GET ASP.NET Web API service hosted there which returns JSON object. When I access this service from localhost or any other server in my network (using browser, Postman, code) the service works. But when I try to access the same url from one specific server (again using browser, Postman, code) I am getting http error code 403 and html response with text:
"Access Denied. You are attempting to access a forbidden site. Consult your system administrator for details.".
The service does not have any kind of authentication and it never returns error 403. Has anybody ever met such a strange behavior?

Intermittently getting HTTP 500 server errors while browsing the Azure Web App

We have enabled out-of-box Azure easy Authentication/Authorization for Azure web app using Azure AD and we have observed that the callback to authenticate the user after the user has logged in causes timeout intermittently.
Exact Error : "500 - The request timed out.
The web server failed to respond within the specified time."
Note: We have a ASP.net website solution deployed to Azure. If the same user opens the site in a different browser at the same time then user will not face timeout issue.

Skype for Business online WebSDK sign in

I'm trying to use Skype for Business online WebSDK. I'm following the instructions located here - https://msdn.microsoft.com/Skype/WebSDK/docs/DevelopWebSDKappsForSfBOnline.
I'm trying to authenticate user with Office 65 online but I have problems while executing app.signInManager.signIn command.
Browser sends several requests:
Request URL:https://webdir.online.lync.com/autodiscover/autodiscoverservice.svc/root
Request Method:GET
Status Code:200 OK
Request URL:https://webdir2e.online.lync.com/Autodiscover/AutodiscoverService.svc/root/oauth/user
Request Method:OPTIONS
Status Code:200 OK
Request URL:https://webdir2e.online.lync.com/Autodiscover/AutodiscoverService.svc/root/oauth/user
Request Method:GET
Status Code:401 Unauthorized
The last request is failing with an error:
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.
I'm authenticating with admin user and with an account that has Skype for Business online subscription.
Can you help me with this problem? What am I doing wrong? Are there any other prerequisites to be able to successfully log in?
I did everything from scratch following the guide here https://github.com/OfficeDev/skype-web-sdk-simple-sample-for-SfB-online. Created a Microsoft account, got a free O365 tenant, signed up for free Azure Active Directory trial account. Associated my O365 account with Azure AD as described here https://msdn.microsoft.com/en-us/office/office365/howto/setup-development-environment#associate-your-office-365-account-with-azure-ad-to-create-and-manage-apps. Then I registered the new app in Azure Active Directory to use Skype for Business.
Then I updated config.js in the skype web sdk simple sample for SfB online application.
And again no luck, the same error - 401 - Unauthorized: Access is denied due to invalid credentials.
I was trying to run the index.html page on the localhost in the htdocs/skype directory. Of course I was setting the reply url accordinly as http://localhost/skype/index.html.
Then I tried to move everything in skype directory to the root - to the htdocs folder. And also changed reply url to http://localhost/index.html. And very strangly but it helped. Now I can successfully login using Skype WebSDK.
I don't know the reason for why it is working only this way. If someone have an idea you are welcome to comment.

"An error occurred while processing your request." with facebook authentication

I have a fresh asp.net application which has facebook authentication button on it. When I do the authentication on localhost it works flawlessly but when I publish and try to do it on work4me.azurewebsites.net it comes up with the error:
An error occurred while processing your request.
I have set the appID, app secret, domain, correct URL, and http://work4me.azurewebsites.net/signin-facebookas the oauth redirect URI. But it seems like it is hanging for a bit saying "waiting for domain name" before giving me the error.
If I try to enable facebook authentication on the azure portal it works however after logging in the application crashes and gives me the error "Server Error in '/' Application.".
I have followed the guide to enable facebook authentication on azures website but with no luck.
What am I doing wrong here?
EDIT:
It seems to get past that point now, and the error is with the redirect URI. However I have followed this example and use the URL https://work4me.azurewebsites.net/.auth/login/facebook/callback as the guide says but still it wont work, giving me the error that the URI is blocked.
It's been a few months since I first tried this, but I was able to get it working both locally and on Azure, by following the online instructions.
Did you enable User Secrets during development to access your credentials from Application Secrets? If so, you need to create environment variables in your Azure Web App to mirror these values under Application Settings.
Let me know if you still have any issues, then I can look into it some more.
All the best! :)

Resources