asp.net mvc - Am I able to retrieve a JIRA HTTP URL using a GET Request when I use CORS? -


i trying retrieve information url of jira issue using mvc application coded in visual basic. calling url using request in ajax.

the url returning correct information in postman. when try use cors allow local host using following headers in web.config:

  <add name="access-control-allow-headers" value="origin, x-requested-with, content-tpye, accept"/>   <add name="access-control-allow-origin" value="http://localhost:xxxxx"/>   <add name="access-control-allow-credentials" value="true"/>   <add name="access-control-allow-methods" value="get, post, put" /> 

i still getting following error:

no 'access-control-allow-origin' header present on requested resource. origin 'http://localhost:xxxxx' therefore not allowed access. response had http status code 400.

even though have added "access-control-allow-origin" web.config.

i wondering possible return information in way or doing correctly. if possible need more information on request or else add it.

i have found out jira system trying pull information not hosted online reason why not able retrieve information , giving me error:

no 'access-control-allow-origin' header present on requested resource. origin 'http://localhost:xxxxx' therefore not allowed access. response had http status code 400.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -