Skip to content

[Bug] CORS Issue for SharePoint Images #198

@mungamurives

Description

@mungamurives

Describe the bug

I have connected the SharePoint with PAC command, particularly a document library, where I want to use one of the image as Banner Image in Code Apps application. When it is running locally, image is loading properly. But when I publish the app, then image is not loading and I am able to see CORS issue on the console. Ideally this is the connected data source not something external link according to code apps.

Steps to Reproduce

  1. Connected the SharePoint document library as the data source.
  2. With the get function I am calling a particular item (means an image).
  3. Appending the image as a background image for the code apps application.
  4. Getting CORS issue after publishing.

Expected behavior

At least connected data sources needs to be loaded without any CORS, because we have already added the data source URL inside schema too.

Actual behavior

Images as not loading, is it because Code Apps is running in an iframe ?

Screenshots or Error Messages

Environment information

  • Framework, build tool or relevant package used: [React]
  • Any connection/components: [SharePoint]

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions