-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Using axios to get data from "/get" to "/", but geting 403 error. (Express, mysql, JWT) #211
Comments
@RukaiJohn Can you provide a list of specific steps to follow in order to reproduce the errors that you are seeing? This should include anything I have to run against my local |
How i created the mysql table. CREATE TABLE Step #1:
Step #2 Since I wasn't successful using axios in the front end. I decided to do it in the backend like this. But it gave my the same 403 error when I tried to get the data from http://localhost:5000/get
*****If I'm not making much sense, I can give you access to my project in github and you can take a look at it if you have time. |
I would want to try to figure out the issue using the code you have provided. If I address it using access to your repo, then someone else finding this Issue in the future would not be able to follow along. Unfortunately, I probably won't be able to look in more detail for at least a few more days, but here are some thoughts that might assist with debugging:
|
I'm not sure if this is the right place to ask this question, but...
What I'm trying to do is get json data from "/get" to "/", but I'm not sure why axios keeps giving my a 403 error. From what I read, axios isn't the issue, but cors is. I tried all the ways that people are recommending, but nothing is working. What I'm I doing wrong within my code? I'm also seeing "Referrer Policy: strict-origin-when-cross-origin" in the Header, but I'm not sure if that's what's causing this issue.
The text was updated successfully, but these errors were encountered: