CORS Policy blocking when accessing Adobe Rest APIs : Cloud Manager API Adobe IO Project | Community
Skip to main content
RiteshY18
New Participant
August 28, 2023
Solved

CORS Policy blocking when accessing Adobe Rest APIs : Cloud Manager API Adobe IO Project

  • August 28, 2023
  • 2 replies
  • 3564 views

i am getting error while accessing API for cloud Manager -  Adobe IO cloud Manager project has been setup in Adobe IO console works fine using Postman and getting expected response on the API call.

When i tried to replicate same in JS Code/Fetch call, getting below error 

has been blocked by CORS policy: Request header field access-control-allow-methods is not allowed by Access-Control-Allow-Headers in preflight response.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

EstebanBustamante
New Participant
August 28, 2023

You need to ensure:

  • CORS is set up correctly as mentioned by @harwinder-singh.

  • Pay special attention to allowing the HTTP OPTIONS method, which is the type of method used for preflight operations.

  • Make sure the dispatcher allows CORS headers and does not block the OPTIONS method.

 

Esteban Bustamante