Postman request API displays cross-domain

clipboard.png
have you ever encountered this problem?

Mar.03,2021

this is not a cross-domain problem, it is written by the backend logic itself. 403 means there is no permission. I ask you to go to the backend.


add the following two parameters to header:

Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials:true

yours should be returned from the backend


what address did you fill in? Don't you parse it first


the visual interface should be restricted by Referer. When requesting, set a referer. that can be used in header.

referer: {{url}}

agrees that upstairs, Postman should not have cross-domain problems, most of which are due to the failure of the check made by you at the backend. You can ask how to bypass it.

Menu