Ask a Question
Back to All

Error submitting

when trying to send as described in the documentation (https://api.pushcrew.com/docs/send-to-all-subscribers) I have been receiving the following error:
"Failed to load https://pushcrew.com/api/v1/send/all: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response."

My code:
$ .ajax ({
url: url,
type: 'post',
async: true,
crossDomain: true,
date: {
title: content.title,
message: content.description,
url: content.url,
image_url: content.image
headers: {
"authorization": "mykey",
dataType: 'json',
done: function (data) {
console.log (data);

My AcountID: ba6c71941fa73cd13ed28807fdb7c53e