apache / apache/pouchdb

PouchDB - Capella => CORS Issue

Open
#9,107 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

When trying to sync / replicate **PouchDB** from **Capella** (from frontend/browswer), using App Services, we get a CORS Error:
`Acces to fetch ____ 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.`

We have added the URL origin in the **App Services** / **Advanced** tab + the following custom headers: `Content-Type, Authorization, Access-Control-Allow-Origin` => now there is an `Acces-Control-Allow-Origin=""` error.

Has anyone faced this issue?

The single solution we found so far, was to set up a proxy server which fixes the CORS issues.

I do mention, we have also posted on the Capella Forum, but still waiting for response.

Any help here would be much appreciated! :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.