Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cors issue while send request to api calls #3035

Open
priyanka6456 opened this issue Nov 24, 2021 · 0 comments
Open

Cors issue while send request to api calls #3035

priyanka6456 opened this issue Nov 24, 2021 · 0 comments

Comments

@priyanka6456
Copy link

priyanka6456 commented Nov 24, 2021

Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.

Description

I am sending the request to my server for data. As we are using express as middleware for API requests. I am getting issue cors every in my API's request.

Steps to reproduce

Steps to reproduce the behavior:

  1. I have a login API when I am sending requests through the redux-saga call function.

Note: Not possible to share my API URL with credentials anywhere.

Expected behavior
The server returns me JSON with the logged-in data of the user.
Expected JSON : {
"userInfo": {
"emailAddress": "[email protected]",
"userIdHash": "961333e7a21b3d9985a20d9d56db9abebfecb184282c77193db49df2e8a0e4e6",
"userName": null
},
"userType": {
"userTypeId": 3,
"sessionIdName": "JSESSIONID",
"userType": "Admin",
"sessionId": "B3983E7DE26D7AE95B75B8FE6372E985"
}
}

Screenshots

9ce1921c-0d9a-4e78-9ecf-f7b4689f2573

Versions

  • React-Boilerplate: 16.8.6
  • Node/NPM: >=8.15.1/>=5
  • Browser: Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant