Krlos Posted July 5, 2023 Share Posted July 5, 2023 Hello, This may not have to do with processwire, but I have a website built with processwire that was working normally. There is a form where users download xray scans, the user enters his ID and an id code for the exam, then using curl we call an api to authenticate and serve the pdf file. Now when filling out the form, the result of the call to the server where the API is located returns: {"statusCode":400,"error":"Bad Request","message":"Invalid cookie value"} The strange thing is some combinations of browser - operating system the error does not appear, but in most it does. Any ideas that help me to be able to solve this problem are very, very grateful. Link to comment Share on other sites More sharing options...
da² Posted July 5, 2023 Share Posted July 5, 2023 Hi, There's not enough information to talk about the issue. It seems the provider changed its API, asking for a cookie that you don't provide. You should check if the API works outside of the form and ProcessWire. 2 Link to comment Share on other sites More sharing options...
Krlos Posted July 5, 2023 Author Share Posted July 5, 2023 Hi @da², The provider confirms that the cookie has not changed. We have found that in the normal flow it gives us the mentioned error, but if we force delete the cookies using "clear browser cookies" in the network tab of the chrome inspector and I hit submit the form again then everything works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now