Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Onshape REST API using JavaScript
gary_clough057
Member Posts: 7 ✭
We are using the Onshape REST Api to extract data from Onshape. We have this working using C# as well as Node.js, but I would like to do the same from client-side javascript. Everything is in place using Ajax and I've verified all authorization headers are correct. My problem is currently with the "Date" header throwing the error: Refused to set unsafe header "Date".
.
Is this even possible or has anyone accomplished this?
Thanks for any help...
-Gary
.
Is this even possible or has anyone accomplished this?
Thanks for any help...
-Gary
0
Comments
I'd echo Jake's point too - why do you need to set the Dates header on a REST API call? I can't think of any of our APIs that are particularly specific to the Date header. Furthermore we expect the REST API calls to be made from a server context and not directly from a browser.
Thanks again for the help.