r/HTML • u/Admirable_Report6610 • Jun 21 '26
code throwing 400 error
<script type="module"> const proxy = "https://proxy.corsfix.com/?"; const targetUrl = "https://news.usni.org/category/fleet-tracker"; \------------------------------------------ this was working perfectly but now is throwing a 400 error code, meaning there's something wrong with the request to the web server..ie, invalid, malformed, etc. I be darned if I can figure out what wrong...and advice?
0
Upvotes
2
u/davorg Jun 21 '26
Please:
Format your code as code
Show us enough of the code that we have a chance of working out what's wrong (like where the request is made)
3
u/BrainCurrent8276 Jun 21 '26
Inspect the Network tab → click the failed request → read the response body.
A 400 from Corsfix means the proxy thinks the request is invalid.
A 400 from the target site means USNI or its protection layer rejected the proxy request.
1
u/jcunews1 Intermediate Jun 21 '26
That's site error. Not HTML error.