Skip to content

Commit 5a1905b

Browse files
authored
Update README.md
1 parent 01d0e7e commit 5a1905b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,28 @@ From here, you are on your own. Develop new pages, models, components, use profe
120120

121121
<p><img width="100%" src="https://user-images.githubusercontent.com/5760249/210167222-e04312ac-46ef-4dcd-a4d5-00c3a207bf32.gif"/></p>
122122

123+
### ➡️ CORS
124+
125+
Please make sure you have APP_URL, SANCTUM_STATEFUL_DOMAINS and SESSION_DOMAIN set correctly in [.env](https://github.com/gdarko/laravel-vue-starter/blob/master/.env.example) file as follows:
126+
127+
#### Normal domain
128+
129+
```
130+
APP_URL=http://mywebsite.com
131+
132+
SANCTUM_STATEFUL_DOMAINS=mywebsite.com
133+
SESSION_DOMAIN=mywebsite.com
134+
```
135+
136+
#### Localhost with port
137+
138+
```
139+
APP_URL=http://localhost:8000
140+
141+
SANCTUM_STATEFUL_DOMAINS=localhost:8000
142+
SESSION_DOMAIN=localhost
143+
```
144+
123145
## ⚡️ Contributions
124146

125147
Pull requests are welcome, feel free to contribute to this project.

0 commit comments

Comments
 (0)