Blocked by CORS policy

Skip to first unread message

Augusto Carmo

Apr 1, 2022, 8:28:29 PMApr 1
to dev
Hello, sometime ago I developed a vue application view and batch edit tags from my annotations, and It worked fine, but now I'm being blocked by CORS police when I use the PATCH method.

This is my code:

const results = await apiPatchAnnotation('/annotations/' + id, { tags: tagsToAdd }, apiInfo.token)

There's something that I can do to fix it?


Robert Knight

Apr 2, 2022, 1:34:59 AMApr 2
to Augusto Carmo, dev

Can you provide a complete list of the request and response headers as reported in your browsers devtools for the PATCH request? One possible issue might be if the request includes a non-standard header which hasn't been explicitly allowed by our server. Additionally if you see an "OPTIONS" request from your browser (aka a "CORS preflight" request) can you include the request/response details for that as well?

Kind regards,

You received this message because you are subscribed to the Google Groups "dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Augusto Carmo

Apr 2, 2022, 7:48:15 AMApr 2
to dev, Robert Knight, dev, Augusto Carmo
That was strange, I tested again this morning in another tab and it worked correctly, without any changes. Luckily I had a tab where the problem continues so here is more information about the requests:

Reply all
Reply to author
0 new messages