Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Working with Squarespace's Commerce API



Hello to all... I've been having some trouble working with the squarespace commerce API in my development of a web app. I'm helping a friend create a custom site using React.js, and running an Express server to make calls to the API. My problem is everytime I try to fetch data, I get a server error 403 from Squarespace. Developer notes says each call must have request headers of authorization followed by a Bearer + API key given by squarespace and a user-agent.
Using Postman for testing when everything is plugged in, I get a successful return. Using my Express code using the same exact headers, an error gets returned.
Something I also noticed from the Developer Notes is:
Caution: All requests sent over HTTP instead of HTTPS are rejected.
It seems a bit impossible to secure my localhost when developing, so I'm somewhat lost in things to do. Any help?
Link to post
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...