Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Getting CORS error while invoking crowd REST API from my local


Getting an error

Failed to load resource: the server responded with a status of 401 (Unauthorized)
localhost/:1 Access to XMLHttpRequest at '' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

while invoking crowd rest api.

No issues when i run it on postman.

How can solve

please help

1 answer

0 votes

Hi Maheswari!

It looks like you're getting a CORS error, so first try going to Crowd and adding 'localhost' under Crowd admin console -> Applications -> Crowd to see if that helps.

Otherwise, there could be some missing headers in your call or an issue with proxy configuration. How is the call different coming from postman vs running it directly? For example, are you running it on the same URL (, is Crowd running on HTTPS, or do you have a proxy configured?

For example, if you're using CURL you might want to try something like this:

curl -H "Origin:" --verbose \

Otherwise, if you're using a proxy or SSL in front of Crowd you should be making the call with the right domain/scheme. If you can add the code you're using to hit the API endpoint as well as your postman call I can see what might be missing. Also, when you run postman, make sure you're running it from the same machine as your code. It could be that postman is adding some headers that are not added when you call it directly.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

174 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you