maciejmaciejewski / azure-pipelines-postman

MIT License
12 stars 9 forks source link

CORS When Loading Tab #4

Open max-morrow-dp opened 4 years ago

max-morrow-dp commented 4 years ago

I added the task and the tab is displayed when loading the results of a run.

However, I see: Error loading report: ' + error + '

When the tab loads.

I checked the debug console and noticed that CORS is blocking your request for the summary. The specific error is below.

Access to fetch at 'https://_[TENANT URI]_/attachments/postman.summary/summary' from origin 'https://maciejmaciejewski.gallerycdn.vsassets.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

ShiniAkaiUsagi commented 2 years ago

Up! @maciejmaciejewski Exactly the same issue here. Did you find any solution? @max-morrow-dp :/

rkendx commented 2 years ago

I saw the CORS error when trying to review the report in DevOps until I set a path value in the "Reporter HtmlExtra Export" field when configuring the "Newman the cli Companion for Postman" step. Once I set this the report rendered.