You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/12/13 01:51:51 UTC

[GitHub] [superset] thuandc commented on issue #20425: CORS error when trying to embed the dashboard into a React application

thuandc commented on issue #20425:
URL: https://github.com/apache/superset/issues/20425#issuecomment-1347634052

   SUPERSET_FEATURE_EMBEDDED_SUPERSET=True
   ENABLE_CORS=True
   CORS_OPTIONS={
       'supports_credentials': True,
       'allow_headers': [
           'X-CSRFToken', 'Content-Type', 'Origin', 'X-Requested-With', 'Accept',
       ],
       'resources': [
            '/superset/csrf_token/' , # auth
            '/api/v1/formData/',  # sliceId => formData
            '/superset/explore_json/*',  # legacy query API, formData => queryData
            '/api/v1/query/',  # new query API, queryContext => queryData
            '/superset/fetch_datasource_metadata/,'  # datasource metadata
            **'/api/v1/security/*'**
       ],
       'origins': ['http://localhost:3001','http://localhost:3000'],
   }
   
   **origins add your url**
   
   but we have problem with api guest token


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org