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
At the beginnen of the server.php which seems to do the trick. Handling this in the Nginx config is also possible but then we've to catch the OPTIONS request there for the CORS preflight requests.
The text was updated successfully, but these errors were encountered:
I'm not a fan of implementing this in Valet+. I'd rather motivate you to figure out how to implement CORS headers into your application or nginx configuration on your production server. Adding this to Valet+ will give users questions like "it works on my dev mac, but not in production, why?".
As an alternative you could implement this in a local valet driver.
I've added
At the beginnen of the
server.php
which seems to do the trick. Handling this in the Nginx config is also possible but then we've to catch theOPTIONS
request there for the CORS preflight requests.The text was updated successfully, but these errors were encountered: