weixin_39670511 2020-11-29 14:38
浏览 0

how to enable cors for dev website that ONLY serves static assets

I know that "CORS is usually handled at the app level" however I have a scenario here where I want to load css/js from a dev domain that is served by valet. However the domain "https//assets.mydomain.dev" ONLY has css/js/images and does not implement any kind of php where I would normally be setting CORS rules.

The only way to achieve this that I can think of is to add CORS whitelisting in the nginx configuration for that specific website (although I would be happy to categorically whitelist everything for cors since this is a dev environment)

Any way to achieve this with Valet?

该提问来源于开源项目:laravel/valet

  • 写回答

0条回答 默认 最新

    报告相同问题?