Skip to content

Instantly share code, notes, and snippets.

View ricomonster's full-sized avatar
👻
I may be slow to respond.

Rico Maglayon ricomonster

👻
I may be slow to respond.
View GitHub Profile
@poul-kg
poul-kg / valet.conf
Last active September 18, 2024 17:32
CORS Rules for Laravel Valet Nginx
# To enable CORS you should add lines with CORS rules below to your valet.conf file
# Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx
# of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory
# after you edit your valet.conf do not forget to execute `valet restart`
server {
listen 80 default_server;
root /;
charset utf-8;
client_max_body_size 128M;

⚠️ this is now stupidly out of date

Computers

  • 13" Macbook Pro 3.3 GHz i7 (late 2016)
  • Microsoft Surface Book (2016)

Peripherals