Skip to Content

OCC - Response 403

Hi.

I've some trouble in my local environment: when sending a POST request by REST Client [like postman or insomnia] to register a new product in my local database the answer is 403 - forbidden.

The request to get the oauth token it's ok, but the token seems not valid ""screenshot-from-2020-07-13-16-09-49.jpg [attachement].

Any help will be appreciated.

Regards,

Wesley Borges.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 14, 2020 at 07:36 AM

    Hi,

    the error on the screenshot mentions an issue with certificate (chain) validation.

    In Postman, you could eventually fix this if you switch off SSL certificate verification (Settings->General->SSL certificate verification=OFF), but this is just a workaround to enable testing.

    You should check your certificates and fix whatever the issue is. A tool like https://www.sslshopper.com/ssl-checker.html might help you see what the issue is.

    Hope that helps!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 14, 2020 at 01:26 PM

    Hi.

    The SSL certificate verification already OFF in the REST Client, the authentication oauth works but some reason the POST in the customized endpoint looks not recognized this configuration.

    The commerce OCC (spring security) response with the jsp to login.

    Regards,

    Wesley Borges.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.