You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, and thank you for this wonderful lib, dynamic options are the greatest.
Now to problem.
I have this configuration, app.options('*', cors());
All static files are loading well but the font files which returns CORS issue.
Static file serving is done this way. app.use(express.static(myParh))
Thank you.
The text was updated successfully, but these errors were encountered:
Hi @shekspir55 it's hard to really say without getting the full app from you to run and debug, but I can at least say that it is probably due to the wrong usage of the module -- you need to app.use this module:
app.use(cors)
The app.options is only a subset and will not apply CORS to the "simple requests", which assets (like fonts) typically are.
Hello, and thank you for this wonderful lib, dynamic options are the greatest.
Now to problem.
I have this configuration,
app.options('*', cors());
All static files are loading well but the font files which returns CORS issue.
Static file serving is done this way.
app.use(express.static(myParh))
Thank you.
The text was updated successfully, but these errors were encountered: