contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

Fixed CORS headers not set correctly when rebuilding the search index #1673

Closed Toflar closed 5 years ago

Toflar commented 6 years ago

I noticed that rebuilding the search index does not work across domains anymore. This PR fixes this issue. The main reason being that $this->connection->isConnected() will always return false if nobody ever tried to connect before. $this->connection->isConnected() is lazy.

leofeyer commented 5 years ago

Merged in contao/contao@9f077d44204cfdfd8a904f695e2d39169a822f2b. Thank you @Toflar.