508 error with proxy server #912
Unanswered
JesseOgunlaja
asked this question in
Q&A
Replies: 1 comment
-
Difficult to see why you are getting the http |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I made a react project with an express API.
I made an API key to secure my API but I found out that you could just find out the value of the API key in the network tab so I thought that I should use a proxy to help. What my code is trying to achieve is that if you make a request from the client side with the x-api-key blank the proxy will then change it to the API key if your host is correct. However when I do this I get a 508 error saying INFINITE_LOOP_DETECTED. I don't know why I am getting this error.
This is my code
// edit: added code syntax highlighting
Beta Was this translation helpful? Give feedback.
All reactions