T
T
TheRelow2021-03-05 20:31:45
CORS
TheRelow, 2021-03-05 20:31:45

How to solve CORS issue with laravel vue?

I send a request to https://api.active-test.tech/api/events/page_lang=en and get some errors
. Moreover, the errors are different and they depend on how the page is opened:
1) on localhost or with a cache update on the server ( https://docs-hub.ru/ )
60426a9d33145808336950.png

2) without updating the cache on the server
60426af439e62672643558.png

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Nanavov, 2021-03-05
@fertyga098

Set up a proxy server in your project, then the error related to CORS will disappear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question