PatentsView / PatentsView-API

BSD 2-Clause "Simplified" License
12 stars 4 forks source link

Some redirects result in 404s #48

Open mustberuss opened 4 years ago

mustberuss commented 4 years ago

Hi, The redirects sent back from the uspc, cpc and nber endpoints result in 404s. Also posts from web pages like https://mustberuss.github.io/Patentsview-Swagger/ seem to be blocked by CORS after the recent api update.

sarvo-madhavan commented 3 years ago

@mustberuss Thank you for reporting the issue. CORS was temporarily turned off when implementing the redirect. It's been enabled again. The issue with 404 from redirect is also fixed.

Thanks!

mustberuss commented 3 years ago

@sarvothaman The redirects are working! I'm still not able to post from a web page like this one though: http://patentsview.historicip.com/ricepost.htm

sarvo-madhavan commented 3 years ago

@mustberuss It looks like the Access Control Allow Origin header requires explicit specification of allowed headers. This has been resolved now.

mustberuss commented 3 years ago

Thanks @sarvothaman, the post works now. Could the same thing be done on an error? If I make a bad request the response is getting blocked and I can't access the X-Status-Reason header. See http://patentsview.historicip.com/bad_req.htm The same thing happens from my swagger page where users may not realize the mistake they made in their request.