loretoparisi commented on issue #27376:
URL: https://github.com/apache/superset/issues/27376#issuecomment-1984123978
My solution was to write a Flask Middlware to send the proper headers,
specifically
```python
response.headers.add("Cross-Origin-Embedder-Policy", 'require-corp')
response.headers.add("Cross-Origin-Resource-Policy", 'cross-origin')
```
As alternative, when using a reverse proxy (e.g. nginix) it is possible to
add to the `nginix/nginix.conf`
```nginx
add_header Cross-Origin-Resource-Policy "cross-origin";
```
Of course the Flask middleware solution is more flexible for development
purposes.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]