# CORS Problems out of the Blue

**URL:** <https://forum.mautic.org/t/cors-problems-out-of-the-blue/24614>\
**Category:** Product Support\
**Created:** [June 29, 2022, 1:58pm UTC](https://forum.mautic.org/t/cors-problems-out-of-the-blue/24614 "2022-06-29T13:58:26Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [June 30, 2022, 7:46am UTC](https://forum.mautic.org/t/cors-problems-out-of-the-blue/24614/19 "2022-06-30T07:46:20Z")

</div>

so I remmebered there was a post to hide the calendar which used myscript.js ([How hide calendar menu item - #3 by robm](https://forum.mautic.org/t/how-hide-calendar-menu-item/16035/3))

So I went and put this back to the way it should be, i.e. original Mautic file and I am getting the following console error:

```auto
Failed to load resource: the server responded with a status of 500 () submit:1

```

In the log the only error I am seeing (and I am not sure this is related as this is a high traffic site) is the following:

```auto
2022/06/30 07:44:59 [error] 1325325#1325325: *11445 FastCGI sent in stderr: "PHP message: PHP Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php on line 106" while reading response header from upstream, client: 11.11.111.11, server: mymaiutic.com, request: "PATCH /api/contacts/411274/edit HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "mymaiutic.com"

```

Although I checked this contact id and it is an actual user so I do not think this error is related.

---

_[View the full topic](https://forum.mautic.org/t/cors-problems-out-of-the-blue/24614)._
