Closed filipenanclarez closed 2 years ago
I need to set ACCESS_CONTROL_ALLOW_ORIGIN: '*' because i got erros when try load .ttf fonts with static server.
I try to do with shelf_cors_headers but without success.
Can you add option to override Headers? Or can i do this with another way? If exist please let me know.
You just need to wrap the static handler with middleware.
Can show me a simple example? I try it, but not succes.
I need to set ACCESS_CONTROL_ALLOW_ORIGIN: '*' because i got erros when try load .ttf fonts with static server.
I try to do with shelf_cors_headers but without success.
Can you add option to override Headers? Or can i do this with another way? If exist please let me know.