If I'm using PayPal's REST API, what specific headers might be causing a 403 error with AJAX?

Responsive Ad Header

Question

Grade: Education Subject: Support
If I'm using PayPal's REST API, what specific headers might be causing a 403 error with AJAX?
Asked by:
93 Viewed 93 Answers

Answer (93)

Best Answer
(391)
With the REST API, the `Content-Type` header is critical. It *must* be set to `application/json` for most requests. Incorrect or missing headers can lead to a 403. Also, ensure you're including the `Authorization` header with the correct authentication credentials (e.g., `Authorization: Bearer `). Double-check that your headers are being sent correctly in your AJAX request.